The do-release-ugprade
will cause a system upgrade to occur, Ubuntu allows the following upgrades
one release to the next (eg. 20.04 to 20.10), where this release is EOL (as 20.10 is), it'll allow you to upgrade to the next non-LTS in the same cycle; currently that's 21.10
one LTS release to the next LTS release (eg. 20.04 to 22.04 after 22.04.1 has been released)
FYI: Release cycles end with the LTS, but start with the first non-LTS after the prior LTS. ie. the cycle that ended with 20.04 started with 18.10, and the 22.04 cycle started with 20.10.
You use the -d
option to upgrade before the release process has been formally opened.
How does it work.
Ubuntu release upgrades tools use by default the following file to ascertain what upgrades are possible - https://changelogs.ubuntu.com/meta-release
The -d
option when used, causes the following file to be used instead - https://changelogs.ubuntu.com/meta-release-development ie. it'll currently allow an upgrade from 20.04 or 21.10 to Ubuntu jammy (which will be Ubuntu 22.04 LTS on release) to occur, when currently it's not offered/available (according to the standard file)
Even after the release of Ubuntu 22.04 LTS, this will only cause the offer of upgrade to be offered to Ubuntu 21.10 users, with Ubuntu 20.04 LTS users still needing to use the -d
option to upgrade to 22.04. Ubuntu 20.04 LTS users will get offered the upgrade to Ubuntu 22.04 LTS only after the release of Ubuntu 22.04.1 LTS.
Please note: The release of Ubuntu 22.04 LTS does not cause any upgrades to be offered, as those files are changed only when deemed the upgrade path is stable for existing users. The Ubuntu Release Team discuss this regularly and decide from reports, when this is done, thus why the use of after is prominent in the documentation on when this occurs. Releases always occur on a Thursday, with the meta file changes usually first being discussed early the subsequent week.
-c
option to see if is possible or not - Am I correct? and-d
should be used if I want upgrade to the next release without matter if it is LTS or not - Am I correct? - Therefore seems at a first glance that-d
should be not used - Am I correct? – Manuel Jordan Apr 10 '22 at 23:09-c
option in theman
page for my current release, thus I'd avoid using it. If I was going to perform a release-upgrade I'd start by reading the release notes of the release you're moving to (we discuss all problems discovered in alpha, beta & QA tests & non-petty issues are documented in the release notes) then follow the instructions that cover the particular release you're performing as that will be what was QA-tested. ie. what I'd use for say a 18.04 to 20.04 upgrade may differ to 20.04 to 22.04 where release notes/upgrade notes say to do differently. – guiverc Apr 10 '22 at 23:15-c
option, it exists: see https://askubuntu.com/questions/1401724/how-does-the-do-release-upgrade-command-work-with-the-c-parameter-option?noredirect=1#comment2432831_1401724 – Manuel Jordan Apr 10 '22 at 23:27-c
but I'd still avoid it as almost no QA/release documentation uses it, and I agree esp. with user535733, but also steeldriver's responses. I'm involved with QA and we have procedures we follow for each release; with the eventual release-notes reflecting our testing & what was learnt during QA. When documentation isn't amended as per bug there will be a reason, even if it's just lack-of-time, and I'd opt to follow recommended paths, if you don't have time to monitor all pre-release QA yourself. – guiverc Apr 11 '22 at 00:11-d
only before the upgrade path actually opens, which is three months after initial release. A release-upgrade of 20.04 to 22.04 before July 2022 requires-d
because the path isn't open yet -- folks are becoming testers for that path. After the path opens in July 2022,-d
is no longer needed. We re-learn this every two years. – user535733 Apr 11 '22 at 02:43