将 21.04 升级到 22.04 的问题(仅显示 21.10 升级选项)

将 21.04 升级到 22.04 的问题(仅显示 21.10 升级选项)

我正在尝试将我的系统从 21.04 升级到 22.04 LTS。

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 21.04
Release:    21.04
Codename:   hirsute

但是,系统似乎只想升级到 21.10。我尝试了以下步骤...

$ sudo apt update
$ sudo apt upgrade
$ sudo apt dist-upgrade
$ sudo apt autoremove
$ sudo reboot
$ sudo do-release-upgrade 
Checking for a new Ubuntu release
Your Ubuntu release is not supported anymore.
For upgrade information, please visit:
http://www.ubuntu.com/releaseendoflife


= Welcome to Ubuntu 21.10 'Impish Indri' =

The Ubuntu team is proud to announce Ubuntu 21.10 'Impish Indri'.

To see what's new in this release, visit:
  https://wiki.ubuntu.com/ImpishIndri/ReleaseNotes

. . .

我是否需要先升级到 21.10,还是可以直接升级到 22.04?

答案1

您需要先升级到 21.10。您不能跳过版本。不过您可以从 LTS 升级到 LTS,从 20.04 升级到 22.04 等等 - 但这对这里没有帮助。

sudo do-release-upgrade-p 复制代码

相关内容