我能在我的Ubuntu Google Compute Engine虚拟机上使用do-release-upgrade来升级吗?
目前的虚拟机镜像版本为Ubuntu 14.04。我想升级到Ubuntu 16.04或18.04。
我能在我的Ubuntu Google Compute Engine虚拟机上使用do-release-upgrade来升级吗?
目前的虚拟机镜像版本为Ubuntu 14.04。我想升级到Ubuntu 16.04或18.04。
是的,你可以这样做。根据以下文档,这也是首选方法,因为:
ubuntu-release-upgrader软件包提供do-release-upgrade,并且旨在处理在Ubuntu版本之间移动时的问题和转换。
这是因为Ubuntu开发人员不支持Debian方式。
如果你按照正确的步骤操作,你会看到类似于这样的消息:
System upgrade is complete.
Restart required
To finish the upgrade, a restart is required.
If you select 'y' the system will be restarted.
**Continue [yN] y**
=== Command detached from window (Fri Feb 22 17:30:44 2019) ===
=== Command terminated normally (Fri Feb 22 17:30:54 2019) ===Connected, host
fingerprint: ssh-rsa 0 C5:6B:DD:78:D2:BB:89:5B:A8:C7:AC:E7:32:52:F7:F2:F3:8D:DE:91:B6:F3:2D:DE:06:2A:EA:9A:50:34:A2:B5
Welcome to Ubuntu 16.04.6 LTS (GNU/Linux 4.4.0-142-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
如果您想升级,最好在尝试之前先拍摄快照,因为它真的取决于镜像有多定制化; 或者首先尝试 16.04
。总的来说,systemd 发生了很多变化。或者只需使用 ubuntu-1804-lts
image... 当拥有startup script时,您永远不会被任何容器困住。这将提取原始脚本:cat ~/.bash_history > startup.sh
,手动设置后。