Bug#948643: apt-file: fails to update
Package: apt-file
Version: 3.2.2
Severity: grave
Justification: renders package unusable
Dear Maintainer,
I have attached a text file containing what happens after i run sudo apt-file update;
-- System Information:
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 10 (buster)
Release: 10
Codename: buster
Architecture: armv7l
Kernel: Linux 4.19.75-v7l+ (SMP w/4 CPU cores)
Kernel taint flags: TAINT_CRAP
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)
Versions of packages apt-file depends on:
ii apt 1.8.2
ii libapt-pkg-perl 0.1.34+b1
ii liblist-moreutils-perl 0.416-1+b3
ii libregexp-assemble-perl 0.36-1
ii perl 5.28.1-6
apt-file recommends no packages.
apt-file suggests no packages.
-- no debconf information
Hit:1 http://archive.raspberrypi.org/debian buster InRelease
Hit:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
Get:3 http://archive.raspberrypi.org/debian buster/main armhf Contents (deb) [998 kB]
Get:4 http://raspbian.raspberrypi.org/raspbian buster/main armhf Contents (deb) [39.8 MB]
Get:5 http://raspbian.raspberrypi.org/raspbian buster/contrib armhf Contents (deb) [211 kB]
Get:6 http://raspbian.raspberrypi.org/raspbian buster/non-free armhf Contents (deb) [780 kB]
Get:7 http://raspbian.raspberrypi.org/raspbian buster/rpi armhf Contents (deb) [307 B]
Fetched 41.8 MB in 1min 40s (418 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 94, in create
self._fill_commands(con)
File "/usr/share/command-not-found/CommandNotFound/db/creator.py", line 132, in _fill_commands
self._parse_single_contents_file(con, f, fp.stdout)
File "/usr/share/command-not-found/CommandNotFound/db/creator.py", line 271, in _parse_single_contents_file
priority = component_priorities[component]
KeyError: 'rpi'
Reading package lists... Done
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
Reply to: