如何将 Ubuntu 21.04 升级到 Ubuntu 21.10

Ubuntu 21.10 是一个非 LTS 版本,这意味着它将只支持 9 个月,直到 2022 年 7 月。如果您更喜欢稳定性而不是前沿,那么坚持使用 Ubuntu 20.04。但是如果你想体验最新最好的软件,你可以按照这个教程进行升级。ubuntu-logo

将 Ubuntu 21.04 升级到 Ubuntu 21.10

步骤 1. 首先,通过apt在终端中运行以下命令确保所有系统包都是最新的。

sudo apt update
sudo apt upgrade

步骤 2. 升级到 Ubuntu 21.10 (Impish Indri)。

要升级到 Ubuntu 21.10,请运行以下命令升级现有软件:

sudo apt update
sudo apt dist-upgrade

接下来,请确保您有和安装包:update-manager-coreubuntu-release-upgrader-core

sudo apt install update-manager-core ubuntu-release-upgrader-core

之后,使用 nano 文本编辑器编辑配置文件:

sudo nano /etc/update-manager/release-upgrades

在此文件的底部,将 Prompt 的值从 更改ltsnormal

# Default behavior for the release upgrader.

[DEFAULT]
# Default prompting behavior, valid options:
#
#  never  - Never check for a new release.
#  normal - Check to see if a new release is available.  If more than one new
#           release is found, the release upgrader will attempt to upgrade to
#           the release that immediately succeeds the currently-running
#           release.
#  lts    - Check to see if a new LTS release is available.  The upgrader
#           will attempt to upgrade to the first LTS release available after
#           the currently-running one.  Note that this option should not be
#           used if the currently-running release is not itself an LTS
#           release, since in that case the upgrader won't be able to
#           determine if a newer release is available.Prompt=normal

保存并关闭文件,然后执行以下命令:

do-release-upgrade -d

步骤 3. 验证系统信息。

安装过程完成后,我们重新启动,我们将使用 Ubuntu 21.04 或使用以下命令检查您的 Ubuntu 版本:

lsb_release -a

输出:

Distributor ID:	Ubuntu
Description:	Ubuntu 21.10
Release:	21.10
Codename:	Impish

感谢您使用本教程将 Ubuntu 20.10 (Groovy Gorilla) 升级到 Ubuntu 21.04 (Hirsute Hippo) 系统。如需其他帮助或有用信息,我们建议您查看官方 Ubuntu 网站

未经允许不得转载:统信UOS之家 » 如何将 Ubuntu 21.04 升级到 Ubuntu 21.10

相关文章