update-manager crashed with KeyError in __getitem__(): "The cache has no package named 'linux-headers-3.2.0-12'"

Bug #927274 reported by Robinson Stürmer
152
This bug affects 32 people
Affects Status Importance Assigned to Milestone
update-manager (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

run the command sudo apt-get update and Update Manager is working again

ProblemType: Crash
DistroRelease: Ubuntu 12.04
Package: update-manager 1:0.156.2
ProcVersionSignature: Ubuntu 3.2.0-11.19-generic 3.2.1
Uname: Linux 3.2.0-11-generic x86_64
ApportVersion: 1.91-0ubuntu1
Architecture: amd64
Date: Sun Feb 5 16:56:13 2012
ExecutablePath: /usr/bin/update-manager
GsettingsChanges:
 com.ubuntu.update-manager first-run false
 com.ubuntu.update-manager launch-time 1328467355
 com.ubuntu.update-manager window-height 747
 com.ubuntu.update-manager window-width 611
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha amd64 (20111212)
InterpreterPath: /usr/bin/python2.7
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/update-manager
ProcEnviron:
 LANGUAGE=pt_BR:pt:en
 PATH=(custom, no user)
 LANG=pt_BR.UTF-8
 SHELL=/bin/bash
PythonArgs: ['/usr/bin/update-manager']
SourcePackage: update-manager
Title: update-manager crashed with KeyError in __getitem__(): "The cache has no package named 'linux-headers-3.2.0-12'"
UpgradeStatus: Upgraded to precise on 2012-01-28 (8 days ago)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo

Revision history for this message
Robinson Stürmer (robin-stu) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in update-manager (Ubuntu):
status: New → Confirmed
Revision history for this message
Brian Murray (brian-murray) wrote :

I ran into this issue with a different package by performing the following steps:

1) Launch update-manager
2) Check for updates (There must be updates available)
3) Click on settings
4) Switch to the "Ubuntu Software" tab
5) Choose a different server in "Download from: "
6) Click "Choose server"
7) Authenticate
8) Click "Close"
9) update-manager will now crash as it tries to look up one of the packages that used to be in the cache.

Additionally, the crash won't be reportable because apport thinks it is not an official package as apt-cache policy shows the following:

9:47:51 - flash:[...ch/bug-attachments/plymouth] apt-cache policy update-manager
update-manager:
  Installed: 1:0.156.5
  Candidate: 1:0.156.5
  Version table:
 *** 1:0.156.5 0
        100 /var/lib/dpkg/status

visibility: private → public
Revision history for this message
Brian Murray (brian-murray) wrote :

One another machine performing these steps I received a Stacktrace instead of a python Traceback.

Revision history for this message
Gvozdik Artem (gvozdik) wrote :

1) run update manager.
2) check for updates.
3) shows that no new updates are available, and then crashes.

12.04 upgraded from 11.10

Revision history for this message
vilQuri (vili-lehto) wrote :

1) Ran update-manager
2) checked for new updates
3) Started downloading updates
4) Crashed and I selected the restart the program option
5) Update finished normally

Nils Geylen (nilsgeylen)
description: updated
Revision history for this message
Matt Bush (mbbush) wrote :

I have no idea if this is relevant, but my sources.list points to a privately-maintained mirror of the ubuntu repos, not one of the main repositories. I experienced the same bug as others have reported here.

Revision history for this message
Paul Schyska (pschyska) wrote :

refreshing updates in update-manager first reported connectivity problems, on second try it led to crash. apt-get update && apt-get upgrade worked

Revision history for this message
Peter Henriksen (repete) wrote :

Installing updates on clean installed 12.04 after being turned off a coupl of days, running under virtualbox ..

Revision history for this message
kay (kay-diam) wrote :

Got this error trying upgrade ubuntu 12.04 beta2 to 12.04

Changed in update-manager (Ubuntu):
importance: Undecided → Medium
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.