apt-check fails with "The cache has no package named 'skype-bin'"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
update-notifier (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I noticed today that I hadn't received any update notifications for a while, and after following the trail found in the output of /usr/lib/
E: Unknown Error: '<class 'KeyError'>' ("The cache has no package named 'skype-bin'")
Removing the exception hook from that file we find the actual error:
Traceback (most recent call last):
File "/usr/lib/
return self._weakref[key]
File "/usr/lib/
o = self.data[key]()
KeyError: 'skype-bin'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./apt-check", line 201, in <module>
run(options)
File "./apt-check", line 136, in run
ignored = ul._is_
File "/usr/lib/
raise KeyError('The cache has no package named %r' % key)
KeyError: "The cache has no package named 'skype-bin'"
This occurs when checking for phased updates, it tries to index the apt.Cache with the package name from the apt_pkg.Cache. But since the arch is amd64 and not i386, the package in the apt.Cache is instead skype-bin:i386.
If we replace:
ignored = ul._is_
with:
ignored = ul._is_
Everything seems to work fine.
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: update-notifier 0.154.1
ProcVersionSign
Uname: Linux 3.13.11.4-netbook x86_64
ApportVersion: 2.14.1-0ubuntu3.2
Architecture: amd64
CurrentDesktop: Unity
Date: Tue Aug 26 13:06:28 2014
InstallationDate: Installed on 2011-10-11 (1049 days ago)
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111011)
SourcePackage: update-notifier
UpgradeStatus: Upgraded to trusty on 2014-04-21 (126 days ago)