无法下载存储库信息。出现错误?

我是新来的。我刚刚安装了Ubuntu,感到非常开心。我试图从Ubuntu软件中心安装一个程序。它显示“可从'宇宙'源获取”。所以我点击了“使用此源”。然后,下载开始了。但是我遇到了一个问题。不久之后,它出现了一个错误。它说“无法下载存储库信息。请检查您的互联网连接”。我感到非常困惑。

以下是错误详细信息:

    W:Failed to fetch http://pk.archive.ubuntu.com/ubuntu/dists/raring/main/source/Sources  404  Not Found
, W:Failed to fetch http://pk.archive.ubuntu.com/ubuntu/dists/raring/restricted/source/Sources  404  Not Found
, W:Failed to fetch http://pk.archive.ubuntu.com/ubuntu/dists/raring/universe/source/Sources  404  Not Found
, W:Failed to fetch http://pk.archive.ubuntu.com/ubuntu/dists/raring/multiverse/source/Sources  404  Not Found
, W:Failed to fetch http://pk.archive.ubuntu.com/ubuntu/dists/raring/main/binary-i386/Packages  404  Not Found
, W:Failed to fetch http://pk.archive.ubuntu.com/ubuntu/dists/raring/restricted/binary-i386/Packages  404  Not Found
, W:Failed to fetch http://pk.archive.ubuntu.com/ubuntu/dists/raring/universe/binary-i386/Packages  404  Not Found
, W:Failed to fetch http://pk.archive.ubuntu.com/ubuntu/dists/raring/multiverse/binary-i386/Packages  404  Not Found
, W:Failed to fetch http://pk.archive.ubuntu.com/ubuntu/dists/raring-updates/main/source/Sources  404  Not Found
, W:Failed to fetch http://pk.archive.ubuntu.com/ubuntu/dists/raring-updates/restricted/source/Sources  404  Not Found
, W:Failed to fetch http://pk.archive.ubuntu.com/ubuntu/dists/raring-updates/universe/source/Sources  404  Not Found
, W:Failed to fetch http://pk.archive.ubuntu.com/ubuntu/dists/raring-updates/multiverse/source/Sources  404  Not Found
, W:Failed to fetch http://pk.archive.ubuntu.com/ubuntu/dists/raring-updates/main/binary-i386/Packages  404  Not Found
, W:Failed to fetch http://pk.archive.ubuntu.com/ubuntu/dists/raring-updates/restricted/binary-i386/Packages  404  Not Found
, W:Failed to fetch http://pk.archive.ubuntu.com/ubuntu/dists/raring-updates/universe/binary-i386/Packages  404  Not Found
, W:Failed to fetch http://pk.archive.ubuntu.com/ubuntu/dists/raring-updates/multiverse/binary-i386/Packages  404  Not Found
, W:Failed to fetch http://pk.archive.ubuntu.com/ubuntu/dists/raring-backports/main/source/Sources  404  Not Found
, W:Failed to fetch http://pk.archive.ubuntu.com/ubuntu/dists/raring-backports/restricted/source/Sources  404  Not Found
, W:Failed to fetch http://pk.archive.ubuntu.com/ubuntu/dists/raring-backports/universe/source/Sources  404  Not Found
, W:Failed to fetch http://pk.archive.ubuntu.com/ubuntu/dists/raring-backports/multiverse/source/Sources  404  Not Found
, W:Failed to fetch http://pk.archive.ubuntu.com/ubuntu/dists/raring-backports/main/binary-i386/Packages  404  Not Found
, W:Failed to fetch http://pk.archive.ubuntu.com/ubuntu/dists/raring-backports/restricted/binary-i386/Packages  404  Not Found
, W:Failed to fetch http://pk.archive.ubuntu.com/ubuntu/dists/raring-backports/universe/binary-i386/Packages  404  Not Found
, W:Failed to fetch http://pk.archive.ubuntu.com/ubuntu/dists/raring-backports/multiverse/binary-i386/Packages  404  Not Found
, E:Some index files failed to download. They have been ignored, or old ones used instead.

请帮忙吗?:(
我正在尝试安装两个程序。
3个回答

首先,从终端尝试执行以下几个命令:
apt-get autoclean
apt-get clean
apt-get autoremove

打开系统设置(从终端中输入:)
gnome-control-center

现在点击软件源,在Ubuntu软件选项卡下,确保所有内容都被勾选,并将下载自:列表控制改为主服务器
现在您可以尝试重新下载应用程序了。(这在我之前起作用过!在一些罕见情况下,重新启动也可能有帮助。)

不,前三个命令都没有起作用,我也找不到任何Ubuntu软件选项卡,也没有找到任何软件源按钮。我只找到了一个“软件和更新”按钮。 - Hamza Shahzad
尝试在它们前面加上sudo,例如:sudo apt-get autoclean - Python Student

只需打开nano /etc/apt/sources.list
然后将所有的'pk'替换为'us'

似乎没有连接到互联网。这可能是由于各种原因引起的。其中一个原因可能是您在代理服务器后面。Ubuntu的指南可以在此网站上找到,用于配置各种工具(包括apt-get)的代理设置。

我还注意到pk.archive.ubuntu.com不完整。en.archive.ubuntu.com包含了在pk镜像上找不到的文件。您可以考虑尝试切换到en变体,方法是编辑/etc/apt/sources.list文件。在更改任何内容之前,您可能需要了解一些关于apt-get和sources.list文件的知识,并始终在更改任何内容之前进行备份。


好的。然而,我在Ubuntu上有完全的互联网访问权限,并且从未在Ubuntu上使用过代理。这是我在几个小时前刚刚安装的新系统,所以我不认为连接有问题。 - Hamza Shahzad
Hamza,你已经试过按照我在第二段建议的那样更换镜像了吗? 你可以亲自看到这个特定的镜像是不完整的: 用浏览器打开以下链接: http://pk.archive.ubuntu.com/ubuntu/dists/raring-updates/multiverse/binary-i386/ 并将其与 http://en.archive.ubuntu.com/ubuntu/dists/raring-updates/multiverse/binary-i386/ 进行比较,你会看到差异。 - phulstaert