KeyError in weak ref package cache

Bug #1059975 reported by Dmitry-Kogura
30
This bug affects 5 people
Affects Status Importance Assigned to Milestone
python-apt (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

On start update software sometimes update-manager crashes with message:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/aptdaemon/worker.py", line 1041, in _simulate
    trans.unauthenticated = self.__simulate(trans)
  File "/usr/lib/python2.7/dist-packages/aptdaemon/worker.py", line 1156, in __simulate
    unauthenticated = self._get_unauthenticated()
  File "/usr/lib/python2.7/dist-packages/aptdaemon/worker.py", line 347, in _get_unauthenticated
    for pkg in self._iterate_packages():
  File "/usr/lib/python2.7/dist-packages/aptdaemon/worker.py", line 1352, in _iterate_packages
    for enum, pkg in enumerate(self._cache):
  File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 197, in __iter__
    yield self[pkgname]
  File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 182, in __getitem__
    pkg = self._weakref[key] = Package(self, self._cache[key])
KeyError: '9693634216138521010ce3ac1d73'

Ubuntu 12.04 (behind proxy). Apt 0.8.16~exp12ubuntu10.3

no longer affects: aptdaemon
summary: - update-manager crashes
+ KeyError in weak ref package cache
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in python-apt (Ubuntu):
status: New → Confirmed
Revision history for this message
Julian Andres Klode (juliank) wrote :

That key does not make sense. The key should be a package name. I don't know what's happening here, but will try to take a closer look.

Changed in python-apt (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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