我如何知道“do-release-upgrade”将升级到哪个版本?

我如何知道“do-release-upgrade”将升级到哪个版本?

我正在运行 Lubuntu LTS 14.04,希望升级到最新的 LTS (16.04)。所有升级指南(例如这个) 似乎建议我应该使用名为 的官方升级脚本do-release-upgrade

但是我怎么知道这会将我从 14.04 带到 16.04 而不是其他版本,例如最新版本 16.10?

它本身的输出do-release-upgrade似乎不包含要升级到的版本。还是我这里漏掉了什么?

答案1

您可以检查:

$ do-release-upgrade -c
Checking for a new Ubuntu release
New release '17.04' available.
Run 'do-release-upgrade' to upgrade to it.

或者运行升级并取消:

$ do-release-upgrade
Checking for a new Ubuntu release
Get:1 Upgrade tool signature [836 B]
Get:2 Upgrade tool [1,268 kB]
Fetched 1,269 kB in 0s (0 B/s)
authenticate 'zesty.tar.gz' against 'zesty.tar.gz.gpg'
extracting 'zesty.tar.gz'
[sudo] password for muru:

从两个输出可以清楚地看出我将升级到 17.04(zesty)。

$ do-release-upgrade --help
Usage: do-release-upgrade [options]

Options:
...
  -c, --check-dist-upgrade-only
                        Check only if a new distribution release is available
                        and report the result via the exit code

相关内容