/usr/bin/update-manager:apt_pkg.CacheMismatchError:foreach_cb:<listcomp>:packages_are_selected:is_selected:marked_delete

Bug #1792122 reported by errors.ubuntu.com bug bridge
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
update-manager (Ubuntu)
In Progress
Medium
Unassigned

Bug Description

[Impact]

 * Update-manager crashes when it tries to remove a package not existing in the archive that was already removed since update-manager refreshed its cache.
 * The fix TODO

[Test Case ]

 (with Bionic's package names)
 * Install older kernel packages, downgrade a few packages and mark the kernels autoremovable:
   $ wget http://mirrors.kernel.org/ubuntu/pool/main/l/linux-hwe/linux-headers-4.8.0-36_4.8.0-36.36~16.04.1_all.deb
   $ sudo dpkg -i linux-headers-4.8.0-36_4.8.0-36.36~16.04.1_all.deb && sudo apt-mark auto linux-headers-4.8.0-36 && sudo /etc/kernel/postinst.d/apt-auto-removal
   $ sudo eatmydata apt install -y --allow-downgrades libpoppler73=0.62.0-2ubuntu2 poppler-utils=0.62.0-2ubuntu2

 * Start update-manager in a different terminal and _don't_ start the upgrade

 * Remove kernel packages behind u-m's back:
   $ sudo apt purge -y linux-headers-4.8.0-36

 * Click Settings.. on update-manager's GUI, then Close on the appearing dialogue. In buggy versions a crash with apt_pkg.CacheMismatchError is shown in the terminal, in

[Regression Potential]

 * TODO

[Original bug text]

The Ubuntu Error Tracker has been receiving reports about a problem regarding update-manager. This problem was most recently seen with package version 1:18.10.7, the problem page at https://errors.ubuntu.com/problem/e5025f8bd160fe34610030a2f4386a39418f0271 contains more details, including versions of packages affected, stacktrace or traceback, and individual crash reports.
If you do not have access to the Ubuntu Error Tracker and are a software developer, you can request it at http://forms.canonical.com/reports/.

Balint Reczey (rbalint)
Changed in update-manager (Ubuntu):
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Balint Reczey (rbalint)
Balint Reczey (rbalint)
description: updated
Balint Reczey (rbalint)
Changed in update-manager (Ubuntu):
assignee: Balint Reczey (rbalint) → nobody
tags: added: eoan
tags: added: focal
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.