[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#923071: marked as done (python-apt issues a warning when /etc/apt/sources.list does not exist)



Your message dated Sun, 19 Apr 2020 19:41:51 +0200
with message-id <20200419194047.GA3753199@debian.org>
and subject line Re: Bug#923071: command-not-found issues a warning when /etc/apt/sources.list does not exist
has caused the Debian Bug report #923071,
regarding python-apt issues a warning when /etc/apt/sources.list does not exist
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
923071: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=923071
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: command-not-found
Version: 18.04.5-1
Severity: normal

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hi,

On my system, /etc/apt/sources.list does not exist (I exclusively use
sources.list.d), causing command-not-found to issue a warning on every run:

> $ command-not-found cowsay
> WARNING:root:could not open file '/etc/apt/sources.list'
> 
> Command 'cowsay' is available in '/usr/games/cowsay'
> cowsay: command not found


Maybe command-not-found should only issue a warning when failing to read
a file due to permissions issues?


Best,

  nicoo

- -- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-2-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages command-not-found depends on:
ii  apt-file     3.2.2
ii  lsb-release  10.2018112800
ii  python3      3.7.2-1
ii  python3-apt  1.8.3

command-not-found recommends no packages.

Versions of packages command-not-found suggests:
pn  snapd  <none>

- -- no debconf information

-----BEGIN PGP SIGNATURE-----

iQJFBAEBCgAvFiEEU7EqA8ZVHYoLJhPE5vmO4pLV7MsFAlxxoUIRHG5pY29vQGRl
Ymlhbi5vcmcACgkQ5vmO4pLV7MunWQ/+MCdOlUcAgGm1smTWZGwpMqC/aVfWjaZQ
/ic6Vji3I1rCC/V6y9F14QoxG8TT25J3Y8VMAKrq/JFBsKORUToeVcyL8iMch9rU
xP/t1U6K/Cft+sxP1hEFB42ttclUIqSebGazp+WXzSfM/vgjoSRWbexD4+++Nmxr
YyvPC4cNFiclxkddcovyB4UiE/2/2AjL2dIDegN4ALvs0PimM36cfUnTANYwS0gb
seLNQhdP9TJS+vYmhU+YbcHDA3GG9Hm6nDHZ8E+/lGVWpHMvk9z07qDwH7rPnfwL
AlChhGDDjEkciP3b5EB5M24rweX6snvj7dvVkyiyaigK8NDMCx5706/IUVlGRxid
GNdCu64NSLvX6yCl0TiEcDXx6SHYt9U9uk/UYhwFcpfJz91Fb0edBX7FFzLlZ9S6
zIy06xRaMrUrVSTOHc8peZMsae+JoDOcH5J7D6E4Y+TC046hkGln8z5ZbYZjTRBY
Mdc7SiekV+bN81pqsASx+3AtKllz4eV1Q0JPKMOMsJoM+II4T+LHgyCjRHyb+5Cs
vD0cW33cCndoc/x62zkPwBLto3v/S0ccAilnignUf6C2a9NA0ULRAV/TJHPGOxpb
VOdwJxGLbZ/9zHxqKyDeP2GUI2H00gVL8C0XvaaHcaXprRBcThil8t5dvd1det1e
yTQs3ptygXg=
=VdbD
-----END PGP SIGNATURE-----

--- End Message ---
--- Begin Message ---
Version: 2.0.0

On Sat, Feb 23, 2019 at 08:38:45PM +0100, Nicolas Braud-Santoni wrote:
> Package: command-not-found
> Version: 18.04.5-1
> Severity: normal
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
> 
> Hi,
> 
> On my system, /etc/apt/sources.list does not exist (I exclusively use
> sources.list.d), causing command-not-found to issue a warning on every run:
> 
> > $ command-not-found cowsay
> > WARNING:root:could not open file '/etc/apt/sources.list'
> > 
> > Command 'cowsay' is available in '/usr/games/cowsay'
> > cowsay: command not found
> 
> 
> Maybe command-not-found should only issue a warning when failing to read
> a file due to permissions issues?


This is fixed in python-apt 2.0

-- 
debian developer - deb.li/jak | jak-linux.org - free software dev
ubuntu core developer                              i speak de, en

--- End Message ---

Reply to: