Google Compute Engine VM上的Ubuntu do-release-upgrade [英] Ubuntu do-release-upgrade on Google Compute Engine VM
问题描述
我可以运行do-release-upgrade来升级我的Ubuntu Google Compute Engine VM吗?
Can I run the do-release-upgrade to upgrade my Ubuntu Google Compute Engine VM?
VM映像版本为Ubuntu 14.04. 我想升级到Ubuntu 16.04或18.04.
The VM image version is Ubuntu 14.04 now. And I would like to upgrade to Ubuntu 16.04 or 18.04.
推荐答案
是的,并且按照以下文档也是首选方式,因为
Yes you can, and as per the following document is also the preferred way because,
ubuntu-release-upgradeer 软件包,提供do-release-upgrade,旨在处理在Ubuntu版本之间移动时的怪癖和过渡.
The ubuntu-release-upgrader package, provides do-release-upgrade, and is designed to handle quirks and transitions when moving between releases of Ubuntu.
这是因为Ubuntu开发人员不支持Debian方式.
This is because the Debian way is not supported by the Ubuntu developers.
如果遵循正确的步骤,则会看到类似以下消息:
If you followed the right steps, you will see a message similar to this:
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
在Google图片文档页面中解释说,
In the Google images document page it explaines that,
如果您的实例运行不再受支持的Ubuntu版本,则可以升级到受支持的Ubuntu版本.
If your instances run Ubuntu releases that are no longer supported,you are allowed to upgrade to a supported Ubuntu release.
还有另一件事,如@Martin所述.在升级映像版本之前,先创建磁盘快照始终是一个好主意.如果您不熟悉do-release-upgrade的完整过程,请执行以下
One more thing, as @Martin mentioned. Is always a good idea to make create a snapshot of your disk prior to upgrading the the image version. And if you are not familiar with the do-release-upgrade full process, the following article will help you get started.
这篇关于Google Compute Engine VM上的Ubuntu do-release-upgrade的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!