{pkg.name for pkg in cache if pkg.is_auto_removable } crashes with KeyError

Bug #1806427 reported by errors.ubuntu.com bug bridge
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-apt (Ubuntu)
New
Undecided
Unassigned

Bug Description

The crash was observed in unattended-upgrades but this iteration should not raise a KeyError IMO.

The Ubuntu Error Tracker has been receiving reports about a problem regarding unattended-upgrades. This problem was most recently seen with package version 1.1ubuntu1.18.04.7, the problem page at https://errors.ubuntu.com/problem/989adb762a1c94d142593ee43970bd510a577223 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/.

Tags: bionic
Balint Reczey (rbalint)
affects: unattended-upgrades (Ubuntu) → python-apt (Ubuntu)
summary: - /usr/bin/unattended-
- upgrade:KeyError:__getitem__:__getitem__:__getitem__:/usr/bin/unattended-
- upgrade@1997:main:get_auto_removable:<setcomp>:__iter__:__getitem__
+ {pkg.name for pkg in cache if pkg.is_auto_removable } crashes with
+ KeyError
description: updated
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.