如何将 Ubuntu14.04 Server 安全的升级到 14.10

发布于 2024-10-10 11:22:20 字数 1839 浏览 21 评论 0

你可能已经知道如何将你的 Ubuntu 桌面升级到最新版本了,不过如果你用的 Ubuntu Server,而且也正好又希望升级一下的话(前提是,不会影响你的应用。一般来说,对于服务器操作系统,应该采用保守态度。如果不是必须升级才能解决的安全问题,最好不要升级,而是采用各种外部手段来解决。)

如果想从 Ubuntu14.04/13.10/13.04/12.10/12.04 或者更老的版本升级到 14.10,只要遵循下面给出的步骤。注意,你不能直接从 13.10 升级到 14.10。你应该先将 13.10 升级到 14.04 在从 14.04 升级到 14.10。下面是详细步骤。

下面的步骤不仅能用于 14.10,也兼容于一些像 Lubuntu14.10,Kubuntu14.10 和 Xubuntu14.10 等的 Ubuntu 衍生版本

重要 :在升级之前,保险起见,不要忘了将你的数据在 U 盘或外部硬盘上保存一下。

服务器升级

从 ubuntu14.04 的服务器升级到 14.10 的服务器,采用下面的步骤。

安装 update-manager-core 这个包如果之前没唷安装的话:

sudo apt-get install update-manager-core

编辑 /etc/update-manager/release-upgrades 这个文件。

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

像下面那样设置 Prompt=normal 或者 Prompt=lts

# 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

现在可以通过下面的命令来更新你的服务系统了。

sudo do-release-upgrade -d

直到屏幕提示你已完成。

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

关于作者

忘羡

暂无简介

文章
评论
27 人气
更多

推荐作者

櫻之舞

文章 0 评论 0

弥枳

文章 0 评论 0

m2429

文章 0 评论 0

野却迷人

文章 0 评论 0

我怀念的。

文章 0 评论 0

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文