[Bug 1798618] Re: confusing error message with 'do-release-upgrade -d' and Prompt=lts

Łukasz Zemczak 1798618 at bugs.launchpad.net
Tue Jan 22 17:35:21 UTC 2019


Hello Steve, or anyone else affected,

Accepted ubuntu-release-upgrader into cosmic-proposed. The package will
build now and be available at https://launchpad.net/ubuntu/+source
/ubuntu-release-upgrader/1:18.10.11.4 in a few hours, and then in the
-proposed repository.

Please help us by testing this new package.  See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how
to enable and use -proposed.  Your feedback will aid us getting this
update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested and change the tag from
verification-needed-cosmic to verification-done-cosmic. If it does not
fix the bug for you, please add a comment stating that, and change the
tag to verification-failed-cosmic. In either case, without details of
your testing we will not be able to proceed.

Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification .  Thank you in
advance for helping!

N.B. The updated package will be released to -updates after the bug(s)
fixed by this package have been verified and the package has been in
-proposed for a minimum of 7 days.

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

** Changed in: update-manager (Ubuntu Bionic)
       Status: In Progress => Fix Committed

** Tags added: verification-needed-bionic

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

Title:
  confusing error message with 'do-release-upgrade -d' and Prompt=lts

Status in ubuntu-release-upgrader package in Ubuntu:
  Fix Released
Status in update-manager package in Ubuntu:
  Fix Released
Status in ubuntu-release-upgrader source package in Bionic:
  Fix Committed
Status in update-manager source package in Bionic:
  Fix Committed
Status in ubuntu-release-upgrader source package in Cosmic:
  Fix Committed
Status in update-manager source package in Cosmic:
  Fix Committed

Bug description:
  Impact
  ------
  A confusing error message is returned if Prompt=lts is set and 'do-release-upgrade -d' is run.

  Test Case
  ---------
  N.B. The changed code will never be reached on an 18.10 unless you hack line 236 of /usr/lib/python3/dist-packages/UpdateManager/Core/MetaRelease.py so that "self.new_dist = None'".

  1) set Prompt=lts in /etc/update-manager/release-upgrades
  2) run do-release-upgrade -d 
  3) Observe the error from the original description

  With versions of update-manager and ubuntu-release-upgrader (which
  depends on the changes in update-manager) from -proposed you will
  instead see a message about "no development version of an LTS
  available" and details about how to modify Prompt.

  Also note there is no independent test case for update-manager as it
  is now just exporting a new variable which is used by ubuntu-release-
  upgrader.

  Original Description
  --------------------
  On a bionic system with Prompt=lts set in /etc/update-manager/release-upgrades, 'do-release-upgrade -d' fails with:

  $ sudo do-release-upgrade -d
  Checking for a new Ubuntu release
  Upgrades to the development release are only
  available from the latest supported release.
  $ echo $?
  1
  $

  The refusal to upgrade is correct, but the message it gives is
  incorrect and gives no hint how to fix.

  Since bionic is the latest release listed in https://changelogs.ubuntu.com/meta-release-lts *and* in https://changelogs.ubuntu.com/meta-release-lts-development, a more accurate explanation would be:
     There is no development version of an LTS release available.
     To upgrade to the latest non-LTS development release, set Prompt=normal.

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



More information about the foundations-bugs mailing list