存储库已关闭?我该如何解决?

存储库已关闭?我该如何解决?

尝试在 ubuntu 服务器 10.04 LTS 实例上安装 Samba 时出现以下错误:

获取失败 http://us.archive.ubuntu.com/ubuntu/pool/main/s/samba/libwbclient0_3.4.7~dfsg-1ubuntu3.6_i386.deb 404 未找到 [IP: 91.189.88.31 80]

有什么方法可以解决这个问题,这样我就不必等待更新服务器恢复了?我以后该如何防止这种情况发生?

编辑:我在 askubuntu 上发现了一个非常相似的帖子:无法获取 http://in.archive.ubuntu.com/ubuntu/dists/maverick/Release

但是 Lekensteyn 的答案不起作用(尽管它对给定问题的作者有所帮助)...我仍然得到以下内容(将 repo 切换到 in.archive.ubuntu.com 之后):

root@orbital /home# apt-get install samba
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  samba: Depends: samba-common-bin but it is not going to be installed
         Depends: libwbclient0 (= 2:3.4.7~dfsg-1ubuntu3.4) but it is not going to be installed
         Depends: libtalloc2 (>= 2.0.0) but it is not installable
         Depends: update-inetd but it is not installable
E: Broken packages

如果一切都失败了,我怎么知道存储库何时可以再次使用?

答案1

在安装软件包之前,您需要运行apt-get update以确保您的软件包列表是最新的。

就 samba 而言,当前版本是2:3.4.7~dfsg-1ubuntu3.7

答案2

软件源允许您选择“下载自”,这允许您更改存储库源。也许不同的选择适合您。如果您选择“其他”,您会发现即使在美国也有很多可供选择。标有“选择最佳服务器”的按钮将优化您的选择以提高性能。

相关内容