我有一台运行 Ubuntu 15.04 的旧服务器,我想将其更新到较新版本的 Ubuntu。
登录时,会出现以下消息:
New release '16.04.2 LTS' available.
Run 'do-release-upgrade' to upgrade to it.
当我运行时do-release-upgrade
,出现以下消息:
An upgrade from 'vivid' to 'xenial' is not supported with this tool.
我检查了文件的内容/etc/update-manager/release-upgrades
,并确认升级已设置为“正常”(即,版本升级程序设置为尝试升级到当前运行版本之后的版本 - 而不是从不更新或仅更新到下一个 LTS 版本)。接下来,我尝试运行do-release-upgrade -d
以尝试开发版本。我收到了以下消息:
Checking for a new Ubuntu release
No new release found
列出的存储库/etc/apt/sources.list
如下:
deb http://de.archive.ubuntu.com/ubuntu/ vivid main restricted
deb-src http://de.archive.ubuntu.com/ubuntu/ vivid main restricted
deb http://de.archive.ubuntu.com/ubuntu/ vivid-updates main restricted
deb-src http://de.archive.ubuntu.com/ubuntu/ vivid-updates main restricted
deb http://de.archive.ubuntu.com/ubuntu/ vivid universe
deb-src http://de.archive.ubuntu.com/ubuntu/ vivid universe
deb http://de.archive.ubuntu.com/ubuntu/ vivid-updates universe
deb-src http://de.archive.ubuntu.com/ubuntu/ vivid-updates universe
deb http://de.archive.ubuntu.com/ubuntu/ vivid multiverse
deb-src http://de.archive.ubuntu.com/ubuntu/ vivid multiverse
deb http://de.archive.ubuntu.com/ubuntu/ vivid-updates multiverse
deb-src http://de.archive.ubuntu.com/ubuntu/ vivid-updates multiverse
deb http://de.archive.ubuntu.com/ubuntu/ vivid-backports main restricted universe multiverse
deb-src http://de.archive.ubuntu.com/ubuntu/ vivid-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu vivid-security main restricted
deb-src http://security.ubuntu.com/ubuntu vivid-security main restricted
deb http://security.ubuntu.com/ubuntu vivid-security universe
deb-src http://security.ubuntu.com/ubuntu vivid-security universe
deb http://security.ubuntu.com/ubuntu vivid-security multiverse
deb-src http://security.ubuntu.com/ubuntu vivid-security multiverse
我应该怎么办?
编辑:这不是重复的升级时我可以跳过版本吗?因为我想升级到后续版本。解决方案 到如何安装软件或从旧的不受支持的版本升级?看起来很有希望,但没有效果。
/etc/apt/sources.list
我已使用以下命令更改了列出的存储库:
sudo sed -i -re 's/([a-z]{2}\.)?archive.ubuntu.com|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list
由此得出以下列表:
deb http://old-releases.ubuntu.com/ubuntu/ vivid main restricted
deb-src http://old-releases.ubuntu.com/ubuntu/ vivid main restricted
deb http://old-releases.ubuntu.com/ubuntu/ vivid-updates main restricted
deb-src http://old-releases.ubuntu.com/ubuntu/ vivid-updates main restricted
deb http://old-releases.ubuntu.com/ubuntu/ vivid universe
deb-src http://old-releases.ubuntu.com/ubuntu/ vivid universe
deb http://old-releases.ubuntu.com/ubuntu/ vivid-updates universe
deb-src http://old-releases.ubuntu.com/ubuntu/ vivid-updates universe
deb http://old-releases.ubuntu.com/ubuntu/ vivid multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ vivid multiverse
deb http://old-releases.ubuntu.com/ubuntu/ vivid-updates multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ vivid-updates multiverse
deb http://old-releases.ubuntu.com/ubuntu/ vivid-backports main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ vivid-backports main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu vivid-security main restricted
deb-src http://old-releases.ubuntu.com/ubuntu vivid-security main restricted
deb http://old-releases.ubuntu.com/ubuntu vivid-security universe
deb-src http://old-releases.ubuntu.com/ubuntu vivid-security universe
deb http://old-releases.ubuntu.com/ubuntu vivid-security multiverse
deb-src http://old-releases.ubuntu.com/ubuntu vivid-security multiverse
然后,apt-get update
会出现一些命中和大量的 404 错误(apt-get upgrade
显示消息时带有0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
)。do-release-upgrade
,带有和不带有 的-d
结果都与之前相同。
当我检查http://old-releases.ubuntu.com/ubuntu/dists/,我看到的最新版本是 Utopic Unicorn 14.10。Vivid Vervet 15.04 在哪里?
我应该怎么办?