为什么我没有得到 Ubuntu 18.04 升级?

Moe*_*har 32 upgrade 18.04

我一直在尝试升级到 Ubuntu 18.04,但是当我尝试

do-release-upgrade -c
Run Code Online (Sandbox Code Playgroud)

我得到这个输出

Checking for a new Ubuntu release
No new release found.
Run Code Online (Sandbox Code Playgroud)

我已经检查了发布日期是 4 月 26 日,但仍然没有收到任何更新......

我对 Linux 有点陌生,所以如果我在任何方面弄错了,请原谅我。

Win*_*nix 22

此处提供了全面的升级指南。其他答案已经提到您需要使用:

do-release-upgrade -d     # Use this until 18.04.1 comes out
do-release-upgrade        # Use this after 18.04.1 comes out
Run Code Online (Sandbox Code Playgroud)

此外,尽管您需要检查文件:

~$ 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
Run Code Online (Sandbox Code Playgroud)

如果最后一行显示“从不”,请将其更改为 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.
Run Code Online (Sandbox Code Playgroud)

这些命令是Prompt=never在 Ubuntu 16.04 下发布的,昨天(2018 年 4 月 28 日)可用于升级。更改提示以lts解决问题。


您应该先备份数据或克隆数据并在测试环境中运行升级。这是我为此目的编写的一个脚本(但您也可以使用 Live USB 手动完成):Bash script to clone Ubuntu to new partition for testing 18.04 LTS upgrade

我在升级过程中做了一些笔记,以下是您可以期待的:

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
Run Code Online (Sandbox Code Playgroud)

请注意,您的步骤会因安装的软件而异。

克隆的更多原因是您可以测试当您接受默认值NY用于获取最新配置时会发生什么,这可能会更好,也可能不会更好。

因为您的原始 Ubuntu 版本保持不变,所以diff如果您选择安装它们,则可以针对新的 18.04 配置文件运行该命令。


mik*_*ver 15

发行说明有这个:

从 Ubuntu 16.04 LTS 或 17.10 升级

直到 18.04 发布几天后才会启用从 17.10 的升级。从 16.04 LTS 升级到 18.04.1 预计在 7 月下旬发布几天后才会启用。

  • 现在是 18.04.1 版本发布后的几天。您是否知道何时允许 LTS 升级的任何信息? (5认同)

L. *_*mes 9

尚未发布/配置所有元信息。您可以等待几天或现在运行它作为替代:

$ do-release-upgrade -d
Run Code Online (Sandbox Code Playgroud)

它完美无缺!

-d是最新的开发版本是当前Ubuntu 18.04 LTS版本。与发行说明中提到的相同。