此处提供了完整的升级指南。其他答案已经提到您需要使用:
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.
这些命令是Prompt=never
在Ubuntu 16.04下发布的,可以在昨天(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
请注意,您的步骤将因安装的软件而异。
进行克隆的更多原因是,您可以测试当接受默认值of N
或Y
用于获取最新配置时会发生什么,这可能更好,也可能很多更好。
因为原始的Ubuntu版本保持不变,所以diff
如果您选择安装新的18.04配置文件,则可以对其运行命令。