Crash if installed packages are not in the APT cache

Bug #404817 reported by Michalxo
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-codec-install (Ubuntu)
Triaged
Low
Unassigned

Bug Description

Binary package hint: gnome-codec-install

Karmic Koala Alpha 3
gnome-codec-install: Installed: 0.3.3ubuntu1
Wanted to install codecs.. then it threw this bug to me.

ProblemType: Crash
Architecture: amd64
Date: Sun Jul 26 11:30:15 2009
DistroRelease: Ubuntu 9.10
ExecutablePath: /usr/bin/gnome-codec-install
InterpreterPath: /usr/bin/python2.6
LiveMediaBuild: Ubuntu 9.10 "Karmic Koala" - Alpha amd64 (20090722.2)
NonfreeKernelModules: nvidia
Package: gnome-codec-install 0.3.3ubuntu1
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/gstreamer-codec-install --transient-for=50331651 gstreamer|0.10|totem|GStreamer\ element\ input-selector|element-input-selector gstreamer|0.10|totem|XVID\ MPEG-4\ decoder|decoder-video/x-xvid
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-3.19-generic
PythonArgs: ['/usr/bin/gstreamer-codec-install', '--transient-for=50331651', 'gstreamer|0.10|totem|GStreamer element input-selector|element-input-selector', 'gstreamer|0.10|totem|XVID MPEG-4 decoder|decoder-video/x-xvid']
SourcePackage: gnome-codec-install
Title: gnome-codec-install crashed with KeyError in __getitem__()
Uname: Linux 2.6.31-3-generic x86_64
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

Revision history for this message
Michalxo (michalxo) wrote :
tags: removed: need-duplicate-check
visibility: private → public
Revision history for this message
Robert Ancell (robert-ancell) wrote :

Buggy code is:
        cache = apt.Cache(GtkOpProgress())
        for pkgname in to_add:
            if not cache[pkgname].isInstalled:
                result = False

For some reason in this case pkgname is not in the cache

summary: - gnome-codec-install crashed with KeyError in __getitem__()
+ Crash if installed packages are not in the APT cache
Changed in gnome-codec-install (Ubuntu):
importance: Undecided → Low
status: New → Confirmed
status: Confirmed → Triaged
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.