[Bug 1511831] [NEW] dist upgrade quirk for linux metapackage crashes if package is not in cache
Brian Murray
brian at ubuntu.com
Fri Oct 30 19:39:14 UTC 2015
Public bug reported:
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
** Affects: ubuntu-release-upgrader (Ubuntu)
Importance: High
Status: Triaged
** Tags: wily xenial
** Changed in: ubuntu-release-upgrader (Ubuntu)
Importance: Undecided => High
** Changed in: ubuntu-release-upgrader (Ubuntu)
Status: New => Triaged
** Tags added: wily xenial
--
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:
Triaged
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