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

Brian Murray brian at ubuntu.com
Wed Aug 29 15:56:34 UTC 2018


** Also affects: ubuntu-release-upgrader (Ubuntu Bionic)
   Importance: Undecided
       Status: New

** Changed in: ubuntu-release-upgrader (Ubuntu Bionic)
       Status: New => In Progress

** Changed in: ubuntu-release-upgrader (Ubuntu Bionic)
   Importance: Undecided => High

** Changed in: ubuntu-release-upgrader (Ubuntu Bionic)
     Assignee: (unassigned) => Brian Murray (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/1787668

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

Status in Ubuntu on IBM z Systems:
  In Progress
Status in ubuntu-release-upgrader package in Ubuntu:
  Fix Released
Status in ubuntu-release-upgrader source package in Bionic:
  In Progress

Bug description:
  Description
  -----------

  For s390x there is no ubuntu-desktop package and the quirk to install
  snaps will crash as it expects there to be an ubuntu-desktop package
  in the cache.

  Test Case
  ---------
  On an s390x system the test case is just to try the upgrade from Ubuntu 16.04 to Ubuntu 18.04. However, to test the new version of the upgrader you'll need to use 'do-release-upgrade -p'. On an amd64 system its way more convoluted but easier for me to test.

  1) Run 'do-release-upgrade'
  2) Choose not to upgrade
  3) cd to /tmp/ubuntu-release-upgrader-xyz123
  4) modify DistUpgradeQuirks.py so that after the log message re Quirks.bionic (both parts) it contains the following:
     import ipdb; ipdb.set_trace()
     cache.open()
  5) run the upgrader again 'sudo ./bionic --frontend DistUpgradeViewText'
  6) when the upgrade pauses you'll need to hack the amd64_Packages and i386_Packages files in /var/lib/apt/lists/ so that the ubuntu-desktop package isn't there. You should also remove ubuntu-desktop from /var/lib/dpkg/status
  7) Press c to continue the upgrade
  8) You should see a crash now

  With the version of the release upgrader from -proposed you will not
  get a crash and will see "package required for Quirk not in cache" in
  /var/log/dist-upgrade/main.log.

  Regression Potential
  --------------------
  None really, ensuring that the package was in the cache should have been done earlier.

  Original 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-z-systems/+bug/1787668/+subscriptions



More information about the foundations-bugs mailing list