Package: command-not-found
Version: 20.10.1-1
Severity: critical
Justification: Breaks unrelated software
Followup-For: Bug #968757

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Tue, 01 Sep 2020 15:59:09 +0800 Paul Wise <p...@debian.org> wrote:
> Control: severity -1 important
> 
> Downgrading this because it does not happen in Debian, only in Debian
> derivatives other than Ubuntu. This happens because it hard-codes
> component priorities and does not have priority values for components
> other than the ones that Debian and Ubuntu use.

Upping the severity (hopefully) as it now does happen in Debian, since 2
days with the following error:

root@bagend:~# aptitude update
Hit http://deb.debian.org/debian bullseye InRelease
Get: 1 http://deb.debian.org/debian testing InRelease [164 kB]
Get: 2 http://deb.debian.org/debian sid InRelease [161 kB]
Get: 3 http://deb.debian.org/debian experimental InRelease [97.5 kB]
Get: 4 http://deb.debian.org/debian testing/main amd64 Packages.diff/Index 
[63.6 kB]
Get: 5 http://security.debian.org/debian-security bullseye-security InRelease 
[48.4 kB]
Get: 6 http://debug.mirrors.debian.org/debian-debug unstable-debug InRelease 
[56.7 kB]
Get: 7 http://deb.debian.org/debian testing/main amd64 Contents 
(deb).diff/Index [63.8 kB]
Get: 8 http://deb.debian.org/debian sid/main Sources.diff/Index [63.6 kB]
Get: 9 http://deb.debian.org/debian sid/non-free Sources.diff/Index [63.3 kB]
Get: 10 http://deb.debian.org/debian sid/main amd64 Packages.diff/Index [63.6 
kB]
Get: 11 http://deb.debian.org/debian sid/main Translation-en.diff/Index [63.6 
kB]
Get: 12 http://deb.debian.org/debian sid/main all Contents (deb).diff/Index 
[63.8 kB]
Get: 13 http://deb.debian.org/debian sid/main amd64 Contents (deb).diff/Index 
[63.8 kB]
Get: 14 http://deb.debian.org/debian sid/contrib Translation-en.diff/Index 
[63.3 kB]
Get: 15 http://deb.debian.org/debian sid/non-free amd64 Packages.diff/Index 
[63.3 kB]
Get: 16 http://deb.debian.org/debian experimental/main amd64 
Packages.diff/Index [63.3 kB]
Get: 17 http://deb.debian.org/debian experimental/main 
Translation-en.diff/Index [63.3 kB]
Get: 18 http://deb.debian.org/debian experimental/main amd64 Contents 
(deb).diff/Index [63.6 kB]
Get: 19 http://deb.debian.org/debian experimental/main all Contents 
(deb).diff/Index [63.6 kB]
Get: 20 http://deb.debian.org/debian experimental/contrib amd64 
Packages.diff/Index [63.3 kB]
Get: 21 http://deb.debian.org/debian experimental/contrib 
Translation-en.diff/Index [63.3 kB]
Get: 22 http://deb.debian.org/debian experimental/contrib amd64 Contents 
(deb).diff/Index [62.8 kB]
Get: 23 http://deb.debian.org/debian experimental/non-free 
Translation-en.diff/Index [63.3 kB]
Get: 24 http://deb.debian.org/debian experimental/non-free all Contents 
(deb).diff/Index [61.4 kB]
Get: 25 http://debug.mirrors.debian.org/debian-debug unstable-debug/main amd64 
Packages.diff/Index [63.6 kB]
Get: 26 http://deb.debian.org/debian testing/main amd64 Packages 
T-2023-01-19-2008.34-F-2023-01-19-2008.34.pdiff [458 B]
Get: 27 http://deb.debian.org/debian testing/main amd64 Contents (deb) 
T-2023-01-19-2008.34-F-2023-01-19-2008.34.pdiff [70 B]
Get: 28 http://deb.debian.org/debian sid/main Sources 
T-2023-01-19-2008.34-F-2023-01-19-2008.34.pdiff [22.9 kB]
Get: 29 http://deb.debian.org/debian sid/non-free Sources 
T-2023-01-19-2008.34-F-2023-01-19-2008.34.pdiff [346 B]
Get: 30 http://deb.debian.org/debian testing/main amd64 Packages 
T-2023-01-19-2008.34-F-2023-01-19-2008.34.pdiff [458 B]
Get: 31 http://deb.debian.org/debian sid/non-free Sources 
T-2023-01-19-2008.34-F-2023-01-19-2008.34.pdiff [346 B]
Get: 32 http://deb.debian.org/debian sid/main Sources 
T-2023-01-19-2008.34-F-2023-01-19-2008.34.pdiff [22.9 kB]
Get: 33 http://deb.debian.org/debian testing/main amd64 Contents (deb) 
T-2023-01-19-2008.34-F-2023-01-19-2008.34.pdiff [70 B]
Get: 34 http://deb.debian.org/debian sid/main amd64 Packages 
T-2023-01-19-2008.34-F-2023-01-19-2008.34.pdiff [14.0 kB]
Get: 35 http://deb.debian.org/debian sid/main amd64 Packages 
T-2023-01-19-2008.34-F-2023-01-19-2008.34.pdiff [14.0 kB]
Get: 36 http://debug.mirrors.debian.org/debian-debug unstable-debug/main 
Translation-en.diff/Index [63.3 kB]
Get: 37 http://debug.mirrors.debian.org/debian-debug unstable-debug/main amd64 
Contents (deb).diff/Index [63.3 kB]
Get: 38 http://deb.debian.org/debian sid/main Translation-en 
T-2023-01-19-2008.34-F-2023-01-19-2008.34.pdiff [3,772 B]
Get: 39 http://debug.mirrors.debian.org/debian-debug unstable-debug/main amd64 
Packages T-2023-01-19-2008.34-F-2023-01-19-2008.34.pdiff [14.2 kB]
Get: 40 http://debug.mirrors.debian.org/debian-debug unstable-debug/main 
Translation-en T-2023-01-19-2008.34-F-2023-01-19-2008.34.pdiff [223 B]
Get: 41 http://deb.debian.org/debian sid/main Translation-en 
T-2023-01-19-2008.34-F-2023-01-19-2008.34.pdiff [3,772 B]
Get: 42 http://debug.mirrors.debian.org/debian-debug unstable-debug/main amd64 
Packages T-2023-01-19-2008.34-F-2023-01-19-2008.34.pdiff [14.2 kB]
Get: 43 http://debug.mirrors.debian.org/debian-debug unstable-debug/main 
Translation-en T-2023-01-19-2008.34-F-2023-01-19-2008.34.pdiff [223 B]
Get: 44 http://debug.mirrors.debian.org/debian-debug unstable-debug/main amd64 
Contents (deb) T-2023-01-19-2008.34-F-2023-01-19-2008.34.pdiff [584 B]
Get: 45 http://debug.mirrors.debian.org/debian-debug unstable-debug/main amd64 
Contents (deb) T-2023-01-19-2008.34-F-2023-01-19-2008.34.pdiff [584 B]
Get: 46 http://deb.debian.org/debian sid/main all Contents (deb) 
T-2023-01-19-2008.34-F-2023-01-19-2008.34.pdiff [6,510 B]
Get: 47 http://deb.debian.org/debian sid/main all Contents (deb) 
T-2023-01-19-2008.34-F-2023-01-19-2008.34.pdiff [6,510 B]
Get: 48 http://deb.debian.org/debian sid/main amd64 Contents (deb) 
T-2023-01-19-2008.34-F-2023-01-19-2008.34.pdiff [4,816 B]
Get: 49 http://deb.debian.org/debian sid/contrib Translation-en 
T-2023-01-19-2008.34-F-2023-01-19-2008.34.pdiff [481 B]
Get: 50 http://deb.debian.org/debian sid/non-free amd64 Packages 
T-2023-01-19-2008.34-F-2023-01-19-2008.34.pdiff [336 B]
Get: 51 http://deb.debian.org/debian sid/main amd64 Contents (deb) 
T-2023-01-19-2008.34-F-2023-01-19-2008.34.pdiff [4,816 B]
Get: 52 http://deb.debian.org/debian sid/non-free amd64 Packages 
T-2023-01-19-2008.34-F-2023-01-19-2008.34.pdiff [336 B]
Get: 53 http://deb.debian.org/debian sid/contrib Translation-en 
T-2023-01-19-2008.34-F-2023-01-19-2008.34.pdiff [481 B]
Get: 54 http://deb.debian.org/debian experimental/main amd64 Packages 
T-2023-01-19-2008.34-F-2023-01-19-2008.34.pdiff [2,525 B]
Get: 55 http://deb.debian.org/debian experimental/main amd64 Packages 
T-2023-01-19-2008.34-F-2023-01-19-2008.34.pdiff [2,525 B]
Get: 56 http://deb.debian.org/debian experimental/main Translation-en 
T-2023-01-19-2008.34-F-2023-01-19-2008.34.pdiff [1,468 B]
Get: 57 http://deb.debian.org/debian experimental/main Translation-en 
T-2023-01-19-2008.34-F-2023-01-19-2008.34.pdiff [1,468 B]
Get: 58 http://deb.debian.org/debian experimental/main amd64 Contents (deb) 
T-2023-01-19-2008.34-F-2023-01-19-2008.34.pdiff [1,360 B]
Get: 59 http://deb.debian.org/debian experimental/main amd64 Contents (deb) 
T-2023-01-19-2008.34-F-2023-01-19-2008.34.pdiff [1,360 B]
Get: 60 http://deb.debian.org/debian experimental/main all Contents (deb) 
T-2023-01-19-2008.34-F-2023-01-19-2008.34.pdiff [1,346 B]
Get: 61 http://deb.debian.org/debian experimental/main all Contents (deb) 
T-2023-01-19-2008.34-F-2023-01-19-2008.34.pdiff [1,346 B]
Get: 62 http://deb.debian.org/debian experimental/contrib amd64 Packages 
T-2023-01-19-2008.34-F-2023-01-19-2008.34.pdiff [517 B]
Get: 63 http://deb.debian.org/debian experimental/contrib amd64 Packages 
T-2023-01-19-2008.34-F-2023-01-19-2008.34.pdiff [517 B]
Get: 64 http://deb.debian.org/debian experimental/contrib Translation-en 
T-2023-01-19-2008.34-F-2023-01-19-2008.34.pdiff [699 B]
Get: 65 http://deb.debian.org/debian experimental/contrib Translation-en 
T-2023-01-19-2008.34-F-2023-01-19-2008.34.pdiff [699 B]
Get: 66 http://deb.debian.org/debian experimental/contrib amd64 Contents (deb) 
T-2023-01-19-2008.34-F-2023-01-19-2008.34.pdiff [302 B]
Get: 67 http://deb.debian.org/debian experimental/contrib amd64 Contents (deb) 
T-2023-01-19-2008.34-F-2023-01-19-2008.34.pdiff [302 B]
Get: 68 http://deb.debian.org/debian experimental/non-free Translation-en 
T-2023-01-19-2008.34-F-2023-01-19-2008.34.pdiff [427 B]
Get: 69 http://deb.debian.org/debian experimental/non-free Translation-en 
T-2023-01-19-2008.34-F-2023-01-19-2008.34.pdiff [427 B]
Get: 70 http://deb.debian.org/debian experimental/non-free all Contents (deb) 
T-2023-01-19-2008.34-F-2023-01-19-2008.34.pdiff [176 B]
Get: 71 http://deb.debian.org/debian experimental/non-free all Contents (deb) 
T-2023-01-19-2008.34-F-2023-01-19-2008.34.pdiff [176 B]
Fetched 2,000 kB in 10s (193 kB/s)
Traceback (most recent call last):
  File "/usr/lib/cnf-update-db", line 26, in <module>
    col.create(db)
  File "/usr/share/command-not-found/CommandNotFound/db/creator.py", line 95, 
in create
    self._fill_commands(con)
  File "/usr/share/command-not-found/CommandNotFound/db/creator.py", line 143, 
in _fill_commands
    self._parse_single_contents_file(con, f, fp.stdout)
  File "/usr/share/command-not-found/CommandNotFound/db/creator.py", line 282, 
in _parse_single_contents_file
    priority = component_priorities[component]
               ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
KeyError: 'non-free-firmware'
E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test 
-w /var/lib/command-not-found/ -a -e /usr/lib/cnf-update-db; then 
/usr/lib/cnf-update-db > /dev/null; fi'
E: Sub-process returned an error code

Current status: 2 (+2) upgradable, 93673 (+17) new.


I do have the 'non-free-firmware' component in my sources.list

AFAICT it does not completely break unrelated software, but still,
this error should not happen.

- -- System Information:
Debian Release: bookworm/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'stable-security'), (500, 
'unstable'), (500, 'testing'), (500, 'stable'), (101, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-1-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages command-not-found depends on:
ii  apt-file     3.3
ii  lsb-release  12.0-1
ii  python3      3.11.1-1
ii  python3-apt  2.5.1

command-not-found recommends no packages.

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

- -- no debconf information

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

iHUEARYIAB0WIQT1sUPBYsyGmi4usy/XblvOeH7bbgUCY8m+WgAKCRDXblvOeH7b
bkELAQCiOfvZ3EXCQBy6EXAJh8F7xRhtxeyfft7MNub31nqpCAD8CLnN0FJzzAeZ
2wQz2W/cf/cIIvIHPgv3cyohaQ6zMwA=
=AXlw
-----END PGP SIGNATURE-----

Reply via email to