[Bug 1511831] Re: dist upgrade quirk for linux metapackage crashes if package is not in cache

Brian Murray brian at ubuntu.com
Sun Nov 8 15:50:52 UTC 2015


On Sun, Nov 08, 2015 at 10:15:06AM -0000, rctay wrote:
> To get this fix, one has to run do-release-upgrade with --proposed/-p,
> instead of apt-get install ubuntu-release-upgrader-core/wily-proposed,
> is this correct?

Yes, it is true that you need to use the -p switch.

> Would the first lead to ubuntu being upgraded to wily- proposed
> instead of wily?

No, using the -p switch does not affect enabling proposed. However, if
you already have it enabled it will remain enabled.

--
Brian Murray

-- 
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 Committed

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