我有一台运行 9.04 的服务器,我想将其升级到 9.10(即将升级到最新版本)。然而,尽管遵循好的 文档,我无能为力。
具体来说,sudo do-release-upgrade
失败:
Checking for a new ubuntu release
Done Upgrade tool signature
Done Upgrade tool
Done downloading
extracting 'lucid.tar.gz'
authenticate 'lucid.tar.gz' against 'lucid.tar.gz.gpg'
tar: Removing leading `/' from member names
Reading cache
Checking package manager
Can not upgrade
An upgrade from 'jaunty' to 'lucid' is not supported with this tool.
我原来的 /etc/apt/sources.list:
## EOL upgrade sources.list
# Required
deb http://old-releases.ubuntu.com/ubuntu/ jaunty main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ jaunty-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ jaunty-security main restricted universe multiverse
# Optional
#deb http://old-releases.ubuntu.com/ubuntu/ jaunty-backports main restricted universe multiverse
#deb http://old-releases.ubuntu.com/ubuntu/ jaunty-proposed main restricted universe multiverse
当我运行 时,更改jaunty
为karmic
和old-releases
到releases
会出现 404 错误sudo aptitude update
。并且,sudo do-release-upgrade
仍然尝试直接升级到 lucid。
答案1
可能已经太晚了但是......
将 jaunty 改为 karmic 并将 old-releases 改为 releases 会导致 404 错误
这应该是旧版本档案
答案2
这次升级根本行不通!
摘自 ubuntu-security-announce 邮件列表(上周收到):
This note is just to confirm that the support period for Ubuntu 9.10
(Karmic Koala) formally ended on May 1, 2011 and Ubuntu Security Notices
no longer includes information or updated packages for Ubuntu 9.10.
因此出现 404。
“残酷的解决方法”:将 /etc/apt/sources.list 和 /apt/sources.list.d/* 中的所有“jaunty”替换为“lucid”,然后运行“aptitude update && aptitude dist-upgrade”
答案3
我看到do-release-upgrade
它正在自动尝试升级到 Lucid,这是错误的(可能是一个错误,因为文档没有指出这种可能性)。
检查一下/etc/update-manager/release-upgrades
。上面有写吗Prompt=lts
?如果是,请尝试将其更改为Prompt=normal
。
如果一切都失败了,您可以尝试以 Debian 的方式升级 - 通过修改您的源以指向 Karmic 并执行apt-get update && apt-get dist-upgrade
。