I just updated my Raspbian to Buster (testing) by editing /etc/apt/sources.list
and replacing all stretch
with buster
and doing apt update && apt dist-upgrade
. Now apt update
always shows an error when updating CommandNotFound database, as well as manually running update-command-not-found
as root. How can I get rid of this error?
root@raspberrypi:/home/pi # update-command-not-found
Traceback (most recent call last):
File "/usr/sbin/update-command-not-found", 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'
root@raspberrypi:/home/pi # echo $?
1
root@raspberrypi:/home/pi #
/etc/apt/sources.list.d/raspi.list
to fix the stretch reference.