The fix works for me. It's relatively easy to check for yourself with
Docker.

To reproduce the issue (version 20.04.4):
docker run --rm ubuntu:focal bash -c 'export DEBIAN_FRONTEND=noninteractive && 
apt-get update && apt-get -y install --no-install-recommends command-not-found 
&& apt-get update ; apt-cache policy command-not-found'

To test the fix (version 20.04.5):
docker run --rm ubuntu:focal bash -c 'echo "deb 
http://archive.ubuntu.com/ubuntu/ focal-proposed restricted main multiverse 
universe" > /etc/apt/sources.list.d/ubuntu-focal-proposed.list && export 
DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get -y install 
--no-install-recommends command-not-found && apt-get update ; apt-cache policy 
command-not-found'

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1876034

Title:
  apt update crashes with "KeyError: 'suite'" in cnf-update-db if index
  compression is enabled

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/command-not-found/+bug/1876034/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to