69
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,664
kgflying
  • 793

1 Answers1

97

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.

Christian
  • 1,556