[Bug 1771387] Re: Could not calculate upgrade should suggest log location

Launchpad Bug Tracker 1771387 at bugs.launchpad.net
Thu Dec 13 15:43:07 UTC 2018


This bug was fixed in the package ubuntu-release-upgrader - 1:19.04.7

---------------
ubuntu-release-upgrader (1:19.04.7) disco; urgency=medium

  [ Brian Murray ]
  * DistUpgrade/DistUpgradeCache.py: When calculating free space needed for
    mount points don't use a negative number as the buffer. (LP: #1786484)
  * fix more typos re RELEASE_UPRADER_ALLOW_THIRD_PARTY
  * DistUpgrade/DistUpgradeCache.py: When calculating free space needed for
    mount points don't use a negative number as the buffer. (LP: #1786484)
  * fix more typos re RELEASE_UPRADER_ALLOW_THIRD_PARTY
  * DistUpgrade/DistUpgradeController.py: When rewriting sources.list entries
    check to see if the source provides packages for the release to which the
    upgrade is occurring. If it doesn't the entry is disabled thereby
    improving upgrades with PPAs. (LP: #1807043)
  * do-release-upgrade: add a parameter to allow third party mirrors and
    repositories, additionally pass along the environmental variable
    RELEASE_UPGRADER_ALLOW_THIRD_PARTY via pkexec and sudo. (LP: #1807032)
  * DistUpgrade/DistUpgradeCache.py: improve messaging regarding failures to
    calculate the upgrade and suggest using ppa-purge if PPAs are an issue.
  * DistUpgrade/DistUpgradeCache.py: in the event there is a failure to
    calculate the upgrade provide information about the log files in
    /var/log/dist-upgrade. (LP: #1771387)

  [ Jeremy Bicha ]
  * autopkgtest: Update dependency from gir1.2-webkit-3.0 to gir1.2-webkit2-4.0

 -- Brian Murray <brian at ubuntu.com>  Tue, 11 Dec 2018 15:35:34 -0800

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

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

Title:
  Could not calculate upgrade should suggest log location

Status in ubuntu-release-upgrader package in Ubuntu:
  Fix Released

Bug description:
  Situation
  ===============

  As more-or-less usual, my attempt to upgrade from 16.04 to 18.04
  failed with "Could not calculate upgrade" error (well, one even more
  confusing and less google-able, as translated to my national
  language). Also, as usual, I found myself confused, without any
  pointers what to do next. I tried a few times, tried googling, to no
  success.

  It took me switching to LANG=C (to see more googlish error messages)
  and about 20 minutes of scanning various forums until I found
  suggestion to check /var/log/dist-upgrade

  There I found some rather cryptic remark  about unresolvable cyclic
  dependency which may be caused by held packages, which nevertheless
  inspired me to look for a way to find held packages.

  A few more minutes of googling and I found out about
       apt-mark showhold
  which nicely listed my few held packages (nvidia-304 and some related, IIRC results of driver problems I resolved 2 years ago).

  I removed those packages and now my upgrade is progressing. But whole
  experience was very unpleasant.

  Suggested changes (tiny changes but with large impact)
  ======================================================

  1. Whenever do-release-upgrade fails, it should suggest checking out /var/log/dist-upgrade.
     Simply, instead of finishing with
         "Could not calculate the upgrade.
         Unresolvable error happened."
     finish with
         "Could not calculate the upgrade.
         Unresolvable error happened.
         Technical logs of failed upgrade can be found in /var/log/dist-upgrade"

     This very sentence would save me at least 2 hours.

  2. In case upgrade calculation fails due to held or unofficial packages, either list problematic
     packages, or suggest commands which will list them. For example, my very case would be resolved
     in a minute if installer printed something like:

         Note: upgrade calculation could be caused by held packages:
            nvidia-304 nvidia-304-dev nvidia-current-updates
         (consider removing those packages temporarily to resolve the problem)

     or

         Note: upgrade calculation could be caused by held packages
         (use apt-mark showhold to list such packages on your system, and
          consider removing them temporarily to resolve the problem)

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



More information about the foundations-bugs mailing list