[Bug 1361768] [NEW] apt-check fails with "The cache has no package named 'skype-bin'"
Jason Conti
1361768 at bugs.launchpad.net
Tue Aug 26 17:15:32 UTC 2014
Public bug reported:
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
/update-notifier/apt-check:
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/python3/dist-packages/apt/cache.py", line 198, in __getitem__
return self._weakref[key]
File "/usr/lib/python3.4/weakref.py", line 125, in __getitem__
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_ignored_phased_update(aptcache[pkg.name])
File "/usr/lib/python3/dist-packages/apt/cache.py", line 205, in __getitem__
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_ignored_phased_update(aptcache[pkg.name])
with:
ignored =
ul._is_ignored_phased_update(aptcache[pkg.get_fullname(False)])
Everything seems to work fine.
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: update-notifier 0.154.1
ProcVersionSignature:
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)
** Affects: update-notifier (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug trusty
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to update-notifier in Ubuntu.
https://bugs.launchpad.net/bugs/1361768
Title:
apt-check fails with "The cache has no package named 'skype-bin'"
Status in “update-notifier” package in Ubuntu:
New
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
/update-notifier/apt-check:
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/python3/dist-packages/apt/cache.py", line 198, in __getitem__
return self._weakref[key]
File "/usr/lib/python3.4/weakref.py", line 125, in __getitem__
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_ignored_phased_update(aptcache[pkg.name])
File "/usr/lib/python3/dist-packages/apt/cache.py", line 205, in __getitem__
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_ignored_phased_update(aptcache[pkg.name])
with:
ignored =
ul._is_ignored_phased_update(aptcache[pkg.get_fullname(False)])
Everything seems to work fine.
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: update-notifier 0.154.1
ProcVersionSignature:
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)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-notifier/+bug/1361768/+subscriptions
More information about the foundations-bugs
mailing list