** Description changed:

+ 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/.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1787668

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

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

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to