如果我运行apt-get update命令,会出现一堆404错误的软件包。我在Server Fault上提了几个问题,但没有得到解决。以下是我已经做过的事情:
运行
apt-get update
,返回如下错误:Err http://gb.archive.ubuntu.com intrepid/main Packages 404 Not Found
[其他许多软件包也是同样的错误]运行
do-release-upgrade
,返回:检查新的Ubuntu版本
升级工具签名失败
升级工具失败
下载完成
正在解压缩'jaunty.tar.gz'
解压缩失败
升级过程中出现了问题。可能是网络或服务器出现了问题。编辑
/etc/update-manager/release-upgrades
,将Prompt=normal
更改为Prompt=lts
(建议参考此处)。更改后再次运行do-release-upgrade
,返回:检查新的Ubuntu版本
在meta-release文件中未找到当前版本
没有发现新版本(更新) 我已经按照这个问题的建议更改了
/etc/apt/sources.list
,将其从intrepid
更改为jaunty
。然而,该版本也已经不在线了。那里的评论说我必须按照时间顺序升级...
所以基本上,看起来我无法升级,因为我的当前发行版已经过时并且不再支持。有没有办法直接升级到10.x或11.x?请注意,由于这是一个服务器,我只能通过命令行访问。
更新 24/11:我成功从8.10升级到9.04。Ubuntu的EOL Upgrades页面提供了一些apt源的备用URL。我还需要更新 /var/lib/update-manager/meta-release
将其指向 old-releases 服务器。
然而,现在我无法从9.04升级到9.10。运行 do-release-upgrade
产生了与上述问题#2相同的错误,只是它显示“Failed to fetch”(meta-release
中的URL是有效的)。Ubuntu Jaunty 升级页面表示必须使用CD镜像进行升级。我按照这里的说明操作,但没有成功:
Traceback (most recent call last): File "/tmp/tmp.JLhTwVUugb/karmic", line 7, in sys.exit(main()) File "/tmp/tmp.JLhTwVUugb/DistUpgradeMain.py", line 132, in main if app.run(): File "/tmp/tmp.JLhTwVUugb/DistUpgradeController.py", line 1590, in run return self.fullUpgrade() File "/tmp/tmp.JLhTwVUugb/DistUpgradeController.py", line 1506, in fullUpgrade if not self.doPostInitialUpdate(): File "/tmp/tmp.JLhTwVUugb/DistUpgradeController.py", line 762, in doPostInitialUpdate self.quirks.run("PostInitialUpdate") File "/tmp/tmp.JLhTwVUugb/DistUpgradeQuirks.py", line 83, in run for plugin in self.plugin_manager.get_plugins(condition): File "/tmp/tmp.JLhTwVUugb/computerjanitor/plugin.py", line 167, in get_plugins filenames = self.get_plugin_files() File "/tmp/tmp.JLhTwVUugb/computerjanitor/plugin.py", line 120, in get_plugin_files basenames = [x for x in os.listdir(dirname) OSError: [Errno 2] No such file or directory: './plugins'
虽然确实建议报告这个错误,但由于这是一个旧的不受支持的版本,我不知道是否值得去做。然而,有没有办法绕过这个问题,从9.04升级到9.10(然后最终升级到10.04 LTS)。
sudo ./cdromupgrade --frontend=DistUpgradeViewText
命令。你已经下载了备用光盘吗?推荐的服务器升级方法会有所不同吗? - fossfreedomdo-release-upgrade
,但当那不起作用时,我随后按照链接的说明运行了你提到的命令。 - DisgruntledGoat