我有一台运行 ubuntu 8.04 (Hardy) 的旧服务器。我需要将其升级到最新版本。当我发出 do-release-upgrade 命令时,我收到以下错误。我不知道该怎么办!任何帮助我都会很感激。
root@server:~# do-release-upgrade
Checking for a new ubuntu release
Failed Upgrade tool signature
Failed Upgrade tool
Done downloading
extracting '/tmp/tmp2qqi4S/intrepid.tar.gz'
Traceback (most recent call last):
File "/usr/bin/do-release-upgrade", line 45, in <module>
fetcher.run()
File "/usr/lib/python2.5/site-packages/UpdateManager/Core/DistUpgradeFetcherCo
re.py", line 160, in run
if not self.extractDistUpgrader():
File "/usr/lib/python2.5/site-packages/UpdateManager/Core/DistUpgradeFetcherCo
re.py", line 98, in extractDistUpgrader
tar = tarfile.open(self.tmpdir+"/"+os.path.basename(self.uri),"r")
File "/usr/lib/python2.5/tarfile.py", line 1148, in open
return func(name, "r", fileobj)
File "/usr/lib/python2.5/tarfile.py", line 1209, in gzopen
fileobj = file(name, mode + "b")
IOError: [Errno 2] No such file or directory: '/tmp/tmp2qqi4S/intrepid.tar.gz'
答案1
你说的是尝试升级落后 5 年的服务器。
虽然我经常说“你不应该把 CD 放进驱动器来升级 unix”,但这是你需要真的必须把 CD 放进驱动器。
试图让你的服务器经历 5 年的升级只会带来痛苦和灾难。
如果你读过命令输出,你应该注意到两条相当不祥的线:
Failed Upgrade tool signature
Failed Upgrade tool
这(可能)是因为升级工具不再可用。我相当肯定 Intrepid Ibex 软件包存储库也不可用,因此您也需要找到它们的副本。
您为此浪费的时间使得全新重新安装成为更好的选择。