About to upgrade the OS from one version to other, for example - from 18.04 to 20.04 or from 20.04 to 22.04 - throughout the process exists and is used the do-release-upgrade
command, and it has some options such as -c
and -d
, now in the following tutorial
In the Step 4. Upgrade Ubuntu Linux to latest LTS section indicates the following:
Execute the following command:
sudo do-release-upgrade
Please note if you may be greeted with the following message:
Checking for a new Ubuntu release There is no development version of
an LTS available. To upgrade to the latest non-LTS develoment release
set Prompt=normal in /etc/update-manager/release-upgrades.
In that case, pass the
-d
option to get the latest supported release forcefully:
sudo do-release-upgrade -d
In the /etc/update-manager/release-upgrades
file currently it has the Prompt=lts
value - according with some research this value/setting is recommendable
Should I assume that if sudo do-release-upgrade -d
is executed then
- The current
Prompt=lts
value is ignored and is usedPrompt=normal
temporally ? - it only for the process execution life time - The current
Prompt=lts
value is is ignored and is usedPrompt=never
temporally ? - it only for the process execution life time - The current
Prompt=lts
value is is overridden toPrompt=normal
? - therefore now is permanently changed - The current
Prompt=lts
value is is overridden toPrompt=never
- therefore now is permanently changed
... and the process goes on
Currently the man do-release-upgrade
for the -d
option indicates
-d, --devel-release
If using the latest supported release, upgrade to the development release
But sadly is not clear.
Question:
- How does exactly
do-release-upgrade -d
work?
Extra Questions
- What scenario is applied? 1,2,3,4?
- When/why would be mandatory use
do-release-upgrade -d
?