当我尝试从 jaunty 升级到 karmic 时遇到了这个问题:
root@server:~# 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.
我不知道为什么我需要先升级到 karmic,但它却尝试升级到 lucid。我猜“lucid”这个词是从某个地方来的,但我不知道从哪里开始找。
答案1
解决了。原来 /etc/update-manager/meta-release 指向的是http://changelogs.ubuntu.com/meta-release该文件显示:
Dist: karmic
Name: Karmic Koala
Version: 9.10
Date: Thu, 29 Oct 2009 12:00:00 UTC
Supported: 0
Description: This is the 9.10 release
Release-File: http://archive.ubuntu.com/ubuntu/dists/karmic/Release
ReleaseNotes: http://changelogs.ubuntu.com/EOLReleaseAnnouncement
UpgradeTool: http://archive.ubuntu.com/ubuntu/dists/karmic-proposed/main/dist-upgrader-all/0.126.9/karmic.tar.gz
UpgradeToolSignature: http://archive.ubuntu.com/ubuntu/dists/karmic-proposed/main/dist-upgrader-all/0.126.9/karmic.tar.gz.gpg
我下载了文件,将“支持:0”改为“支持:1”,然后将文件托管在我自己的网络服务器上,并将元发布指向我的服务器。效果很好。
不知道 Ubuntu 是否有理由让此升级变得无法进行,或者是否意外将支持更改为 0。
答案2
另一个解决方案:
mkdir -pv /tmp/karmic
cd /tmp/karmic
wget http://old-releases.ubuntu.com/ubuntu/dists/karmic-proposed/main/dist-upgrader-all/0.126.9/karmic.tar.gz
tar zxvf karmic.tar.gz
./karmic
重新启动然后:
do-release-upgrade