[Bug 1511831] Re: dist upgrade quirk for linux metapackage crashes if package is not in cache
Launchpad Bug Tracker
1511831 at bugs.launchpad.net
Mon Nov 16 23:49:57 UTC 2015
This bug was fixed in the package ubuntu-release-upgrader - 1:15.10.14.2
---------------
ubuntu-release-upgrader (1:15.10.14.2) wily-proposed; urgency=medium
* DistUpgrade/DistUpgradeQuirks.py: protect against the linux metapackage
not being available in the cache. (LP: #1511831)
-- Brian Murray <brian at ubuntu.com> Wed, 04 Nov 2015 13:25:30 -0800
** Changed in: ubuntu-release-upgrader (Ubuntu Wily)
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ubuntu-release-upgrader in
Ubuntu.
https://bugs.launchpad.net/bugs/1511831
Title:
dist upgrade quirk for linux metapackage crashes if package is not in
cache
Status in ubuntu-release-upgrader package in Ubuntu:
Fix Released
Status in ubuntu-release-upgrader source package in Wily:
Fix Released
Bug description:
The Ubuntu Error Tracker has some reports indicating the release
upgrader can crash when running the install_linux_metapackage quirk.
Here is the Traceback:
Traceback (most recent call last):
File "/tmp/ubuntu-release-upgrader-tsk6132y/wily", line 8, in <module>
sys.exit(main())
File "/tmp/ubuntu-release-upgrader-tsk6132y/DistUpgrade/DistUpgradeMain.py", line 240, in main
if app.run():
File "/tmp/ubuntu-release-upgrader-tsk6132y/DistUpgrade/DistUpgradeController.py", line 1837, in run
return self.fullUpgrade()
File "/tmp/ubuntu-release-upgrader-tsk6132y/DistUpgrade/DistUpgradeController.py", line 1790, in fullUpgrade
if not self.askDistUpgrade():
File "/tmp/ubuntu-release-upgrader-tsk6132y/DistUpgrade/DistUpgradeController.py", line 978, in askDistUpgrade
if not self.cache.distUpgrade(self._view, self.serverMode, self._partialUpgrade):
File "/tmp/ubuntu-release-upgrader-tsk6132y/DistUpgrade/DistUpgradeCache.py", line 215, in wrapper
res = f(*args, **kwargs)
File "/tmp/ubuntu-release-upgrader-tsk6132y/DistUpgrade/DistUpgradeCache.py", line 624, in distUpgrade
self.post_upgrade_rule()
File "/tmp/ubuntu-release-upgrader-tsk6132y/DistUpgrade/DistUpgradeCache.py", line 463, in post_upgrade_rule
self.quirks.run("PostDistUpgradeCache")
File "/tmp/ubuntu-release-upgrader-tsk6132y/DistUpgrade/DistUpgradeQuirks.py", line 102, in run
func()
File "/tmp/ubuntu-release-upgrader-tsk6132y/DistUpgrade/DistUpgradeQuirks.py", line 136, in wilyPostDistUpgradeCache
self._install_linux_metapackage()
File "/tmp/ubuntu-release-upgrader-tsk6132y/DistUpgrade/DistUpgradeQuirks.py", line 660, in _install_linux_metapackage
if not cache[linux_metapackage].is_installed:
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 'linux-rpi2'"
These are the buckets:
https://errors.ubuntu.com/problem/37aa9dc242cd00bad6a1f3b598e883b860754d29
https://errors.ubuntu.com/problem/ab6522ce1b227b12711e3d624d0cf780660e0b23
https://errors.ubuntu.com/problem/994bf05fae85fbcd44f721495db6518f2d5a126d
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1511831/+subscriptions
More information about the foundations-bugs
mailing list