如何将 Ubuntu LTS 版本更新到下一个 LTS 版本(版本升级)
在此页
- 1 条初步说明
- 2 将现有的 Ubuntu LTS 版本升级到下一个可用的 LTS
- 3 个链接
本文档介绍了如何从 Ubuntu 12.04 升级到 Ubuntu 14.04 LTS。通常,每 2 年发布一次的 Ubuntu .04 版本是长期支持 (LTS) 版本,例如 Ubuntu 12.04、14.04 等。实际上,这意味着 LTS 版本支持错误修复和安全更新,只要5 年,因此用户将无权通过弹出窗口提醒他们安装最新的可用版本。
1 初步说明
本教程基于 Ubuntu 12.04 服务器,因此在继续本教程之前,您应该设置基本的 Ubuntu 12.04 服务器安装。系统应该有一个静态 IP 地址。我在本教程中使用 192.168.0.100 作为我的 IP 地址,使用 server1.example.com 作为主机名。
2 将现有的 Ubuntu LTS 版本升级到下一个可用的 LTS
虽然这种现象不会影响常规 Ubuntu 版本的使用,但那些想要访问更新功能和最新应用程序的用户可以选择将其系统上现有的 Ubuntu LTS 升级到下一个可用版本,如下所述。
正确备份数据后,我们将进行以下操作:
apt-get update
apt-get install update-manager-core
然后编辑文件/etc/update-manager/release-upgrades:
vi /etc/update-manager/release-upgrades
# 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=lts
在上面的文件中,您可以使用选项升级到 LTS 或正常版本升级,您想要的升级只需将其放入 Prompt=lts 因为我们想要 LTS 更新,所以我选择它。
现在我们可以通过运行以下命令继续更新:
do-release-upgrade -d
系统将提示您询问服务更新和其他值,只需选择选项是,它会在一段时间内完成。获得分发升级可能需要时间。在我的情况下,它花了 20 分钟,可能因您的情况而异。
分发升级后,它将要求重新启动,只需重新启动,然后在下一个登录提示符中检查 bash 提示符:
cat /etc/lsb-release
:~$
恭喜!您已成功升级到 Ubuntu 14.04 的 Ubuntu 最新 LTS 版本 🙂
3个链接
- Ubuntu : http://www.ubuntu.com/