apt-get error: cnf-update-db - KeyError: 'suite' (focal)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
command-not-found (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
"apt-get update" fails to run when command-not-found is installed on Ubuntu 20.04.
To reproduce with Docker:
docker pull ubuntu:20.04 # Pull latest Ubuntu 20.04 docker image
docker run -it ubuntu:20.04 # Start an Ubuntu 20.04 docker container
# Within the container run:
apt-get update
apt-get -yy dist-upgrade
apt-get -yy install command-not-found
exec bash # Reload bash to load command-not-found
apt-get update # Update command-not-found database
Traceback (most recent call last):
File "/usr/lib/
col.create(db)
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
suite=
KeyError: 'suite'
Reading package lists... Done
E: Problem executing scripts APT::Update:
E: Sub-process returned an error code
description: | updated |
description: | updated |
description: | updated |
description: | updated |
no longer affects: | apt (Ubuntu) |
affects: | command-not-found → command-not-found (Ubuntu) |
Status changed to 'Confirmed' because the bug affects multiple users.