![当旧版本不再有必要的软件包时,我该如何从 Ubuntu Intrepid 8.10 升级到 Jaunty 9.04?](https://linux22.com/image/529547/%E5%BD%93%E6%97%A7%E7%89%88%E6%9C%AC%E4%B8%8D%E5%86%8D%E6%9C%89%E5%BF%85%E8%A6%81%E7%9A%84%E8%BD%AF%E4%BB%B6%E5%8C%85%E6%97%B6%EF%BC%8C%E6%88%91%E8%AF%A5%E5%A6%82%E4%BD%95%E4%BB%8E%20Ubuntu%20Intrepid%208.10%20%E5%8D%87%E7%BA%A7%E5%88%B0%20Jaunty%209.04%EF%BC%9F.png)
我将 sources.list 更改为:
deb http://old-releases.ubuntu.com/ubuntu/ intrepid main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ intrepid-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ intrepid-security main restricted universe multiverse
我尝试安装sudo apt-get install update-manager-core
但出现此错误:
1 upgraded, 3 newly installed, 0 to remove and 40 not upgraded.
Need to get 2506kB/2555kB of archives.
After this operation, 4346kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Err http://old-releases.ubuntu.com intrepid-updates/main update-manager-core 1:0.93.34
404 Not Found
Err http://old-releases.ubuntu.com intrepid-security/main dpkg 1.14.20ubuntu6.3
404 Not Found
Failed to fetch http://old-releases.ubuntu.com/ubuntu/pool/main/d/dpkg/dpkg_1.14.20ubuntu6.3_amd64.deb 404 Not Found
Failed to fetch http://old-releases.ubuntu.com/ubuntu/pool/main/u/update-manager/update-manager-core_0.93.34_amd64.deb 404 Not Found
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
运行 apt-get update 或 --fix-missing 返回相同的错误。
如何才能成功从 Intrepid Ibex 升级到 Jaunty 9.04?
答案1
wget http://old-releases.ubuntu.com/ubuntu/pool/main/d/dpkg/dpkg_1.14.20ubuntu6.3_amd64.deb
dpkg -i dpkg_1.14.20ubuntu6.3_amd64.deb update-manager-core_0.93.34_amd64.deb
答案2
快速扫描存储库的内容显示,他们似乎已将该版本的架构从 amd64 更改为 ia64,不要问我为什么。
您可以通过01internal
向 中添加文件(或任何您喜欢的其他名称)来解决此问题/etc/apt/apt.conf.d/
。该文件应如下所示:
APT::Architecture "ia64";
然后重新运行apt-get update
,希望它能够开始工作。
此外,在版本之间移动时执行此操作也是一种很好的做法apt-get dist-upgrade
。他们可能已经解决了这个问题,因此 dist-upgrade 可以在没有上述魔法的情况下顺利进行,但我没有合适的机器来测试这个理论。