61
sudo do-release-upgrade -cd

returns

Checking for a new Ubuntu release
New release '22.04' available.
Run 'do-release-upgrade' to upgrade to it.

Then

sudo do-release-upgrade

returns

Checking for a new Ubuntu release
There is no development version of an LTS available.
To upgrade to the latest non-LTS development release
set Prompt=normal in /etc/update-manager/release-upgrades.

I think the bug is:

22.04 is not marked as LTS. So do-release-upgrade does not work for the upgrade from 20.04 LTS to 22.04 LTS.

Any workaround except set Prompt=normal in /etc/update-manager/release-upgrades.?

Nmath
  • 12,333
kgflying
  • 713
  • 30
    There is no bug as that is expected behavior. The upgrade path from 20.04 to 22.04 does not open until after the release of Ubuntu 22.04.1 LTS which is still ~three months into the future. It's the same as prior LTS releases & upgrades (and exactly as documentation states). – guiverc Apr 22 '22 at 01:11
  • 1
    If you check back on prior release-upgrade cycle; Canonical/Ubuntu have provided blogs on how to upgrade without waiting... but you'll note the date of when blog is posted varies (ie. 16.04->18.04 was a different time frame to 18.04->20.04) as the Ubuntu Release Team provide input on the blog's release, and it only occurs after they deem it has a good chance of success (full success is when they open the path). If you watched the release; whilst it went rather smoothly; there are still known/issues, the earliest should be fixed Monday (via upgrades), others will likely take longer – guiverc Apr 22 '22 at 01:28
  • Linking back to the documentation stating this would be helpful @guiverc - I didn't know this! – toonarmycaptain Apr 22 '22 at 15:30
  • 2
    @toonarmycaptain I wasn't thinking of a single wiki/help/blog post at ubuntu.com; but it's found in many places... The release announcement for Ubuntu 22.04 LTS actually state "Users of Ubuntu 21.10 will soon be offered an automatic upgrade to 22.04. Users of 20.04 LTS will be offered the automatic upgrade when 22.04.1 LTS is released, which is scheduled for the 4th of August. For further information about upgrading, see:".. – guiverc Apr 23 '22 at 05:10
  • @toonarmycaptain I'm on the Ubuntu News team (since 2015) thus see most posts for UWN purposes, then tend to forget them, though tend to recall details even if not URLs; but a search engine would be required by me too for much of that now, so I'll suggest you try. I picked on example I used and found https://ubuntu.com/blog/how-to-upgrade-from-ubuntu-18-04-lts-to-20-04-lts-today for the 18.04->20.04 blog but they'll all be there.. though help/wiki pages on upgrade are often paragraphs on pages about other things release related. I'll suggest using site:*.ubuntu.com in searches – guiverc Apr 23 '22 at 05:15
  • @guiverc fair enough :) I hope I didn't come across harshly; I really would have expected something like this to be be documented if it's SOP (outside of blog posts! Maybe the release cycle page could note this. Thanks for your work :) – toonarmycaptain Apr 25 '22 at 15:56

1 Answers1

92

In case you're coming from 21.10: The Jammy Jellyfish Release Notes (from 2022-04-21) contain a note on Upgrading from Ubuntu 21.10:

Upgrades to 22.04 LTS are currently not enabled (due a bug with snapd and update-notifier) but will be in the next couple of days

In case you're coming from 20.04 LTS: Ubuntu 20.04 will not detect a newer version until Ubuntu 22.04.1 is released, which is scheduled for 2022-08-04.

From Ubuntu Server Upgrading:

Upgrades from one LTS to the next LTS release are only available after the first point release. For example, Ubuntu 18.04 LTS will only upgrade to Ubuntu 20.04 LTS after the 20.04.1 point release. If users wish to update before the point release (e.g. on a subset of machines to evaluate the LTS upgrade) users can force the upgrade via the -d flag.

jack
  • 1,506