[Bug 1787668] Re: ubuntu-release-upgrader crashed with KeyError: "The cache has no package named 'ubuntu-desktop'"

Brian Murray brian at ubuntu.com
Fri Aug 17 22:22:44 UTC 2018


Here's the Traceback:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apt/cache.py", line 194, in __getitem__
    return self._weakref[key]
  File "/usr/lib/python3.5/weakref.py", line 131, in __getitem__
    o = self.data[key]()
KeyError: 'ubuntu-desktop'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apt/cache.py", line 198, in __getitem__
    rawpkg = self._cache[key]
KeyError: 'ubuntu-desktop'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/tmp/ubuntu-release-upgrader-wtsb6vse/bionic", line 8, in <module>
    sys.exit(main())
  File "/tmp/ubuntu-release-upgrader-wtsb6vse/DistUpgrade/DistUpgradeMain.py", line 238, in main
    if app.run():
  File "/tmp/ubuntu-release-upgrader-wtsb6vse/DistUpgrade/DistUpgradeController.py", line 2017, in run
    return self.fullUpgrade()
  File "/tmp/ubuntu-release-upgrader-wtsb6vse/DistUpgrade/DistUpgradeController.py", line 1863, in fullUpgrade
    if not self.doPostInitialUpdate():
  File "/tmp/ubuntu-release-upgrader-wtsb6vse/DistUpgrade/DistUpgradeController.py", line 894, in doPostInitialUpdate
    self.quirks.run("PostInitialUpdate")
  File "/tmp/ubuntu-release-upgrader-wtsb6vse/DistUpgrade/DistUpgradeQuirks.py", line 113, in run
    func()
  File "/tmp/ubuntu-release-upgrader-wtsb6vse/DistUpgrade/DistUpgradeQuirks.py", line 132, in bionicPostInitialUpdate
    if self.controller.cache['ubuntu-desktop'].is_installed and \
  File "/usr/lib/python3/dist-packages/apt/cache.py", line 200, in __getitem__
    raise KeyError('The cache has no package named %r' % key)
KeyError: "The cache has no package named 'ubuntu-desktop'"

It's seems strange that 'ubuntu-desktop' wouldn't exist in the cache but
there you go.

-- 
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/1787668

Title:
  ubuntu-release-upgrader crashed with KeyError: "The cache has no
  package named 'ubuntu-desktop'"

Status in ubuntu-release-upgrader package in Ubuntu:
  New

Bug description:
  The Ubuntu Error Tracker has been receiving reports about a problem regarding ubuntu-release-upgrader.  This problem was most recently seen with package version 1:18.04.24, the problem page at https://errors.ubuntu.com/problem/4d58e1d3013ef3d30087896474bb1a7328354e59 contains more details, including versions of packages affected, stacktrace or traceback, and individual crash reports.
  If you do not have access to the Ubuntu Error Tracker and are a software developer, you can request it at http://forms.canonical.com/reports/.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1787668/+subscriptions



More information about the foundations-bugs mailing list