我可以运行do-release-upgrade来升级我的Ubuntu Google Compute Engine VM吗?
VM镜像版本现在是Ubuntu 14.04。我想升级到Ubuntu 16.04或18.04。
发布于 2019-02-23 02:31:56
是的,你可以,并且根据下面的document,也是首选的方式,因为,
ubuntu-release-upgrader包,提供do-
-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在谷歌图片document page中解释说,
如果您的实例运行的是不再支持的Ubuntu版本,则允许您升级到受支持的Ubuntu版本。
还有一件事,就像@Martin提到的那样。在升级镜像版本之前创建磁盘的快照总是一个好主意。如果您不熟悉do-release-upgrade的完整流程,下面的article将帮助您入门。
发布于 2019-02-22 15:55:36
我认为它应该可以工作,最好在尝试升级之前拍一张快照--因为这真的取决于镜像的定制程度;或者先试试16.04。总的来说,systemd改变了很多。或者直接使用ubuntu-1804-lts image...拥有startup script时,您永远不会被任何容器卡住。这将在手动设置之后提取原始脚本:cat ~/.bash_history > startup.sh。
https://stackoverflow.com/questions/54822341
复制相似问题