我已经安装了 ubuntu 17.04,我想将它升级到 18.04。当我尝试这样做时:
sudo do-release-upgrade
我收到一条消息说An upgrade from 'zesty' to 'bionic' is not supported with this tool
。需要输入才能继续进行此操作。
sudo do-release-upgrade
Checking for a new Ubuntu release
Your Ubuntu release is not supported anymore.
For upgrade information, please visit:
http://www.ubuntu.com/releaseendoflife
Get:1 Upgrade tool signature [819 B]
Get:2 Upgrade tool [1,257 kB]
Fetched 1,258 kB in 0s (0 B/s)
authenticate 'bionic.tar.gz' against 'bionic.tar.gz.gpg'
extracting 'bionic.tar.gz'
Reading cache
Checking package manager
Can not upgrade
An upgrade from 'zesty' to 'bionic' is not supported with this tool.
这在任何地方都没有得到正确解释,这是您需要做的(或我是如何做到的):
升级到 17.04 到 17.10: 无法从 ubuntu 17.04 升级到 17.10
(链接说使用 aptitude 而不是 apt-get)
从 17.10 升级到 18.04:EOLUpgrades
将 /etc/apt/sources.list 中的所有内容替换为:
然后运行升级:
当被要求时按照它所说的去做,然后等待它完成,你应该完成。
编辑
根据WiMantis,
sudo sed -i -re 's/old-releases.ubuntu.com/archive.ubuntu.com/g' /etc/apt/sources.list
不再需要。WiMantis发表了一篇关于它的文章。相关部分: