什么是更新Ubuntu 9.04的最佳方式?

我有一个Ubuntu的9.04服务器,没有任何packase支持了。 如果我想更新我的软件包列表,我得到以下错误:

Err http://de.archive.ubuntu.com jaunty-security/multiverse Packages 404 Not Found [IP: 141.30.13.10 80] W: Failed to fetch http://de.archive.ubuntu.com/ubuntu/dists/jaunty/main/binary-amd64/Packages 404 Not Found [IP: 141.30.13.10 80] .... 

我在官方的Ubuntu-Support-Page上看到,有一个update-manager-core Package升级到新版本。 不幸的是我没有安装这个软件包,并且由于缺less软件包源而无法安装它。

编辑:从另一个版本安装包update-manager-core不起作用,因为它取决于较高版本的python-apt 。 (用10.04试过)

  $ dpkg -i update-manager-core_0.134.7_amd64.deb Selecting previously deselected package update-manager-core. (Reading database ... 28743 files and directories currently installed.) Unpacking update-manager-core (from update-manager-core_0.134.7_amd64.deb) ... dpkg: dependency problems prevent configuration of update-manager-core: update-manager-core depends on python-apt (>= 0.7.13.4ubuntu3); however: Version of python-apt on system is 0.7.9~exp2ubuntu10. update-manager-core depends on python-gnupginterface; however: Package python-gnupginterface is not installed. dpkg: error processing update-manager-core (--install): dependency problems - leaving unconfigured Errors were encountered while processing: update-manager-core 

那么,在没有重新安装完整(虚拟)服务器的情况下升级到当前版本的最佳方法是什么?

我自己解决了这个问题。

下载ISO文件并将其安装在本地文件夹中:

  wget http://old-releases.ubuntu.com/releases/jaunty/ubuntu-9.04-server-amd64.iso mkdir cdrom mount -o loop ubuntu-9.04-server-amd64.iso 

调整/etc/apt/sources.list并添加本地文件夹

  deb file:///tmp/cdrom/ main 

执行更新并安装update-manager-core

  apt-get update apt-get install update-manager-core 

现在系统更新从9.04到9.10,然后从9.10到10.04 LTS工作正常!

如果你正在使用/ dev / loop#可能没有必要使用的虚拟化(安全原因),但是DEB文件仍然在jaunty光盘上,所以如果你可以在本地安装它,你可以把它上传到你的服务器并运行dpkg -i update_manager_whatever.deb获得相同的结果。

该文件在池/ u / update-manager中

从9.10开始我有类似的问题。 非常感谢Fu86。 由于我遇到的错误,我不得不做一些小的修改,但提供的信息是非常有帮助的。

 cd /tmp wget http://old-releases.ubuntu.com/releases/karmic/ubuntu-9.10-server-amd64.iso mkdir cdrom 

使用Fu86的方法安装图像给了我

 mount: can't find ubuntu-9.10-server-amd64.iso in /etc/fstab or /etc/mtab 

然而,这工作如需要:

 sudo mount -o loop -t iso9660 ubuntu-9.10-server-amd64.iso /tmp/cdrom 

编辑/etc/apt/sources.list文件,在安装的iso上添加目录。 我不得不做一点点不同的事情,以免得到一个关于“畸形分析”的错误。 在以下命令中, karmiccdrom dists目录内的目录, main是其中的目录:

 deb file:///tmp/cdrom/ karmic main 

最后我跑了:

 sudo apt-get update sudo apt-get install update-manager-core sudo do-release-upgrade 

祝你好运,并再次感谢Fu86的大部分信息。