如何确保升级后的服务器仍然保持在 LTS 上?

如何确保升级后的服务器仍然保持在 LTS 上?

我想将我的服务器从非 LTS(Saucy)升级到新的 LTS(Trusty Tahr)。

换句话说,一旦 Ubuntu 14.10 发布(14.04 之后的下一个预定版本),我希望保留在 LTS 分支而不是转到 14.10。

我应该做(或者不应该做)什么特别的事情吗?

这仅仅是不是14.10 出来后就可以运行sudo apt-get dist-upgrade了,还是需要调整配置文件?

答案1

升级后,您需要做的就是确保您只收到 LTS 版本的通知。您可以通过检查文件来执行此操作/etc/update-manager/release-upgrades

[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

确保Prompt=设置为lts

sudo apt-get dist-upgrade除非您手动更改/etc/apt/sources.list或执行,否则运行永远不会将您升级到较新的版本do-release-upgrade,所以您应该可以继续。

相关内容