我一直试图升级到 Ubuntu 18.04,但当我尝试
do-release-upgrade -c
我得到这个输出
Checking for a new Ubuntu release
No new release found.
我已查过发布日期是 4 月 26 日,但我仍然没有收到任何更新......
我对 Linux 还不太熟悉,所以如果有任何错误,请原谅我。
答案1
提供了详细的升级指南这里。其他答案已经提到您需要使用:
do-release-upgrade -d # Use this until 18.04.1 comes out
do-release-upgrade # Use this after 18.04.1 comes out
此外您还需要检查文件:
~$ cat /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=never
如果最后一行显示“从不”,请针对 Ubuntu 17.10 用户将其更改为“正常”。对于 Ubuntu 16.04 LTS 用户,请将其更改为“LTS”。否则您将获得升级...嗯“从不”:
rick@alien:~$ do-release-upgrade
Checking for a new Ubuntu release
No new release found.
───────────────────────────────────────────────────────────────────────────────────────────
rick@alien:~$ do-release-upgrade -d
Checking for a new Ubuntu release
Upgrades to the development release are only
available from the latest supported release.
───────────────────────────────────────────────────────────────────────────────────────────
rick@alien:~$ do-release-upgrade -c
Checking for a new Ubuntu release
No new release found.
这些命令是在 Ubuntu 16.04 下发出的Prompt=never
,该版本昨天(2018 年 4 月 28 日)可供升级。更改提示符即可lts
解决问题。
你应该先备份你的数据或者克隆你的数据并在测试环境中运行升级。这是我为此目的编写的一个脚本(但您也可以使用 Live USB 手动执行此操作):Bash 脚本将 Ubuntu 克隆到新分区以测试 18.04 LTS 升级
我在升级过程中做了一些记录,以下是您可以期待的内容:
Step 1: confirmation to proceed: Press [ENTER]
Step 2: packages will be removed: Y
Step 3: replace '/etc/systemd/longind.conf': Y
Step 4: Configuration file '/etc/sane.d/dll.conf', default N, take Y
Step 5: Configuration file '/etc/NetworkManager/conf.d/default-wifi-powersave-on.conf' Take default N
Step 6: Configuration file '/etc/pulse/default.pa' default N, take Y
Step 7: Configuration file '/etc/grub.d/30_os-prober'' default N, take N
Step 8: Full screen grub menu config appears. Take option: keep the local version currently installed
Step 9: Configuration file '/etc/cron.d/anacron', default N, take Y to see what
Error Message multiple times: /sbin/ldconfig.real: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf.d/x86_64-linux-gnu_EGL.conf: No such file or directory
Step 10: Non-standard: Configuration file '/etc/vnstat.conf' (display differences 1.13 vs 1.18) take Y
Step 11: 220 packages are going to be removed. (can take hours) enter Y
Step 12: To finish the upgrade, a restart is required. Take Y
请注意,您的步骤将根据所安装的软件而有所不同。
克隆的更重要的原因是您可以测试当您接受默认值N
或使用Y
以获取最新配置时会发生什么,这可能会或可能不会更好。
因为您的原始 Ubuntu 版本保持不变,所以diff
如果您选择安装新的 18.04 配置文件,您可以针对它运行命令。
答案2
发行说明拥有这个:
从 Ubuntu 16.04 LTS 或 17.10 升级
从 17.10 升级要等到 18.04 发布几天后才能启用。从 16.04 LTS 升级要等到 18.04.1 发布几天后才能启用,预计 18.04.1 发布时间为 7 月底。
答案3
一切元信息尚未发布/配置还没有。你可以等几天或者现在运行这个作为替代方案:
$ do-release-upgrade -d
它运行完美!
这-d
是最新开发版本,即当前Ubuntu 18.04 LTS
版本。与发行说明中提到的版本相同。