[Bug 1798618] Re: confusing error message with 'do-release-upgrade -d' and Prompt=lts
Launchpad Bug Tracker
1798618 at bugs.launchpad.net
Thu Jan 31 09:20:22 UTC 2019
This bug was fixed in the package ubuntu-release-upgrader - 1:18.04.30
---------------
ubuntu-release-upgrader (1:18.04.30) bionic; urgency=medium
* data/release-upgrades: Clarify documentation regarding the behavior for
different Prompt settings. (LP: #1795024)
* do-release-upgrade: Utilize information regarding what Prompt is set to so
that a more informative error message can be displayed.
(LP: #1798618, LP: #1795024)
* 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)
* debian/source_ubuntu-release-upgrader.py: Include xorg_fixup.log if it
exists.
* DistUpgrade/xorg_fix_proprietary.py: modify how the system is checked to
see if nvidia is being used, drop fglrx check since it has been
deprecated. (LP: #1773637)
-- Brian Murray <brian at ubuntu.com> Wed, 16 Jan 2019 15:53:58 -0800
--
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 Released
Status in update-manager source package in Bionic:
Fix Released
Status in ubuntu-release-upgrader source package in Cosmic:
Fix Released
Status in update-manager source package in Cosmic:
Fix Released
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