apt-get update 不起作用

apt-get update 不起作用

我刚刚第二次在我的 nexus 7 上安装 Ubuntu(单独下载)。两次我都无法使用 apt-get upgrade,因此无法安装任何应用程序。

在第二次安装时,我在设置过程中打开了终端模式,并注意到 Glibc 两次由于某种原因都没有正确设置(这可能是问题所在吗?)。

我已经尝试了在其他问题中能找到的所有可能的方法。我认为其他一些重要的事情是-

  1. 两次下载过程中,互联网连接都中断了,然后下载又恢复了

  2. 我刚刚在我的连接中安装了一个新的交换机,这导致我的 PC 出现了一些 DSL 问题,但在 WIFI 上没有出现问题,所以我不认为这是原因

  3. 我可以在 ubuntu 上浏览网页并进行几乎所有与互联网相关的操作,但当我尝试发送错误报告或错误报告时,由于没有互联网连接,更新失败!此外,当我尝试选择最佳服务器时,它给出了相同的错误

  4. ping 8.8.8.8 返回 0% 丢失

  5. 由于某种原因,当我尝试选择我的镜像并选择区域镜像(in.ubuntu.archive.com/ubuntu)时,它会选择该镜像,但重新启动后会重置为主镜像。即使我在 sources.list 中更改它,也会发生这种情况

  6. 在我的 Nexus 7 上安装最新的 13.04 后,系统要求我升级到更稳定的 13.10,但我无法在终端中执行此操作,因为它说我没有互联网连接,当我通过更新管理器执行此操作时,确认窗口对于我的屏幕来说太大,我无法选择接受,所以我仍然使用 13.04

  7. 除了安装时显示的 Glibc 错误之外,我相信安装过程中没有任何其他错误。我一步一步地使用了 Multirom 说明。

  8. 错误信息每次都不一样,有的发生了一些不好的事情,有的则无法安装某些文件,有时两者兼而有之

在将它安装到我的新 Nexus 7 上之前,我一直试图在旧的 Nexus 7 上进行测试,但除非这个问题得到解决,否则我不会这么做。任何帮助都值得赞赏!:)

如果您想查看我的或安装日志,请sources.list告诉resolv.conf

我已删除http://,因此不显示链接

root@pranay-finaltest:/home/pranay# apt-get update
Ign archive.ubuntu.com raring Release.gpg
Ign archive.ubuntu.com raring Release
Err archive.ubuntu.com raring/main Sources
  404  Not Found [IP: 91.189.92.200 80]
Err archive.ubuntu.com raring/restricted Sources
  404  Not Found [IP: 91.189.92.200 80]
Err archive.ubuntu.com raring/universe Sources
  404  Not Found [IP: 91.189.92.200 80]
Err archive.ubuntu.com raring/multiverse Sources
  404  Not Found [IP: 91.189.92.200 80]
Err archive.ubuntu.com raring/main armhf Packages
  404  Not Found [IP: 91.189.92.200 80]
Err archive.ubuntu.com raring/restricted armhf Packages
  404  Not Found [IP: 91.189.92.200 80]
Err archive.ubuntu.com raring/universe armhf Packages
  404  Not Found [IP: 91.189.92.200 80]
Err archive.ubuntu.com raring/multiverse armhf Packages
  404  Not Found [IP: 91.189.92.200 80]
Ign archive.ubuntu.com raring/main Translation-en_IN
Ign archive.ubuntu.com raring/main Translation-en
Ign archive.ubuntu.com raring/multiverse Translation-en_IN
Ign archive.ubuntu.com raring/multiverse Translation-en
Ign archive.ubuntu.com raring/restricted Translation-en_IN
Ign archive.ubuntu.com raring/restricted Translation-en
Ign archive.ubuntu.com raring/universe Translation-en_IN
Ign archive.ubuntu.com raring/universe Translation-en
W: Failed to fetch
archive.ubuntu.com/ubuntu/dists/raring/main/source/Sources  404  Not
Found [IP: 91.189.92.200 80]

W: Failed to fetch
archive.ubuntu.com/ubuntu/dists/raring/restricted/source/Sources
404  Not Found [IP: 91.189.92.200 80]

W: Failed to fetch
archive.ubuntu.com/ubuntu/dists/raring/universe/source/Sources  404
Not Found [IP: 91.189.92.200 80]

W: Failed to fetch
archive.ubuntu.com/ubuntu/dists/raring/multiverse/source/Sources
404  Not Found [IP: 91.189.92.200 80]

W: Failed to fetch
archive.ubuntu.com/ubuntu/dists/raring/main/binary-armhf/Packages
404  Not Found [IP: 91.189.92.200 80]

W: Failed to fetch
archive.ubuntu.com/ubuntu/dists/raring/restricted/binary-armhf/Packages
404  Not Found [IP: 91.189.92.200 80]

W: Failed to fetch
archive.ubuntu.com/ubuntu/dists/raring/universe/binary-armhf/Packages
404  Not Found [IP: 91.189.92.200 80]

W: Failed to fetch
archive.ubuntu.com/ubuntu/dists/raring/multiverse/binary-armhf/Packages
404  Not Found [IP: 91.189.92.200 80]

E: Some index files failed to download. They have been ignored, or old ones
used instead.
root@pranay-finaltest:/home/pranay# gedit /etc/apt/sources.list
root@pranay-finaltest:/home/pranay# apt-get update
Ign archive.ubuntu.com raring Release.gpg
Ign archive.ubuntu.com raring-security Release.gpg
Ign archive.ubuntu.com raring Release
Ign archive.ubuntu.com raring-security Release
Err ports.ubuntu.com raring-backports Release.gpg
  Something wicked happened resolving 'ports.ubuntu.com:http' (-11 - System
error)
Err archive.ubuntu.com raring/main Sources
  404  Not Found [IP: 91.189.91.13 80]
Err archive.ubuntu.com raring/restricted Sources
  404  Not Found [IP: 91.189.91.13 80]
Err archive.ubuntu.com raring/universe Sources
  404  Not Found [IP: 91.189.91.13 80]
Err archive.ubuntu.com raring/multiverse Sources
  404  Not Found [IP: 91.189.91.13 80]
Err archive.ubuntu.com raring/main armhf Packages
  404  Not Found [IP: 91.189.91.13 80]
Ign ports.ubuntu.com raring-security Release.gpg
Ign ports.ubuntu.com raring-backports Release
Err archive.ubuntu.com raring/restricted armhf Packages
  404  Not Found [IP: 91.189.91.13 80]
Ign ports.ubuntu.com raring-security Release
Err archive.ubuntu.com raring/universe armhf Packages
  404  Not Found [IP: 91.189.91.13 80]
Err archive.ubuntu.com raring/multiverse armhf Packages
  404  Not Found [IP: 91.189.91.13 80]
Ign archive.ubuntu.com raring/main Translation-en_IN
Ign archive.ubuntu.com raring/main Translation-en
Ign archive.ubuntu.com raring/multiverse Translation-en_IN
Ign archive.ubuntu.com raring/multiverse Translation-en
Ign archive.ubuntu.com raring/restricted Translation-en_IN
Ign archive.ubuntu.com raring/restricted Translation-en
Ign archive.ubuntu.com raring/universe Translation-en_IN
Ign archive.ubuntu.com raring/universe Translation-en
Err archive.ubuntu.com raring-security/main Sources
  404  Not Found [IP: 91.189.91.13 80]
Err archive.ubuntu.com raring-security/restricted Sources
  404  Not Found [IP: 91.189.91.13 80]
Err archive.ubuntu.com raring-security/universe Sources
  404  Not Found [IP: 91.189.91.13 80]
Err archive.ubuntu.com raring-security/multiverse Sources
  404  Not Found [IP: 91.189.91.13 80]
24% [Waiting for headers]^C
root@pranay-finaltest:/home/pranay# gedit /etc/apt/sources.list
root@pranay-finaltest:/home/pranay# apt-get update
Ign ports.ubuntu.com raring-security Release.gpg
Ign ports.ubuntu.com raring-security Release
Ign archive.ubuntu.com raring Release.gpg
Ign archive.ubuntu.com raring-updates Release.gpg
Ign archive.ubuntu.com raring-security Release.gpg
Ign archive.ubuntu.com raring Release
Ign archive.ubuntu.com raring-updates Release
Ign archive.ubuntu.com raring-security Release
Err ports.ubuntu.com raring-security/main armhf Packages
  404  Not Found [IP: 91.189.88.140 80]
Err ports.ubuntu.com raring-security/restricted armhf Packages
  404  Not Found [IP: 91.189.88.140 80]
Err ports.ubuntu.com raring-security/universe armhf Packages
  404  Not Found [IP: 91.189.88.140 80]
Err ports.ubuntu.com raring-security/multiverse armhf Packages
  404  Not Found [IP: 91.189.88.140 80]
Ign ports.ubuntu.com raring-security/main Translation-en_IN
Ign ports.ubuntu.com raring-security/main Translation-en
Ign ports.ubuntu.com raring-security/multiverse Translation-en_IN
Ign ports.ubuntu.com raring-security/multiverse Translation-en
Ign ports.ubuntu.com raring-security/restricted Translation-en_IN
Ign ports.ubuntu.com raring-security/restricted Translation-en
Ign ports.ubuntu.com raring-security/universe Translation-en_IN
Ign ports.ubuntu.com raring-security/universe Translation-en
Err archive.ubuntu.com raring/main Sources
  404  Not Found [IP: 91.189.92.201 80]
Err archive.ubuntu.com raring/restricted Sources
  404  Not Found [IP: 91.189.92.201 80]
Err archive.ubuntu.com raring/universe Sources
  404  Not Found [IP: 91.189.92.201 80]
Err archive.ubuntu.com raring/multiverse Sources
  404  Not Found [IP: 91.189.92.201 80]
Err archive.ubuntu.com raring/main armhf Packages
  404  Not Found [IP: 91.189.92.201 80]
Err archive.ubuntu.com raring/restricted armhf Packages
  404  Not Found [IP: 91.189.92.201 80]
Err archive.ubuntu.com raring/universe armhf Packages
  404  Not Found [IP: 91.189.92.201 80]
Err archive.ubuntu.com raring/multiverse armhf Packages
  404  Not Found [IP: 91.189.92.201 80]
Ign archive.ubuntu.com raring/main Translation-en_IN
Ign archive.ubuntu.com raring/main Translation-en
Ign archive.ubuntu.com raring/multiverse Translation-en_IN
Ign archive.ubuntu.com raring/multiverse Translation-en
Ign archive.ubuntu.com raring/restricted Translation-en_IN
Ign archive.ubuntu.com raring/restricted Translation-en
Ign archive.ubuntu.com raring/universe Translation-en_IN
Ign archive.ubuntu.com raring/universe Translation-en
Err archive.ubuntu.com raring-updates/main Sources
  404  Not Found [IP: 91.189.92.201 80]
Err archive.ubuntu.com raring-updates/restricted Sources
  404  Not Found [IP: 91.189.92.201 80]
Err archive.ubuntu.com raring-updates/universe Sources
  404  Not Found [IP: 91.189.92.201 80]
Err archive.ubuntu.com raring-updates/multiverse Sources
  404  Not Found [IP: 91.189.92.201 80]
Err archive.ubuntu.com raring-updates/main armhf Packages
  404  Not Found [IP: 91.189.92.201 80]
Err archive.ubuntu.com raring-updates/restricted armhf Packages
  404  Not Found [IP: 91.189.92.201 80]
Err archive.ubuntu.com raring-updates/universe armhf Packages
  404  Not Found [IP: 91.189.92.201 80]
Err archive.ubuntu.com raring-updates/multiverse armhf Packages
  404  Not Found [IP: 91.189.92.201 80]
Ign archive.ubuntu.com raring-updates/main Translation-en_IN
Ign archive.ubuntu.com raring-updates/main Translation-en
Ign archive.ubuntu.com raring-updates/multiverse Translation-en_IN
Ign archive.ubuntu.com raring-updates/multiverse Translation-en
Ign archive.ubuntu.com raring-updates/restricted Translation-en_IN
Ign archive.ubuntu.com raring-updates/restricted Translation-en
Ign archive.ubuntu.com raring-updates/universe Translation-en_IN
Ign archive.ubuntu.com raring-updates/universe Translation-en
Err archive.ubuntu.com raring-security/main Sources
  404  Not Found [IP: 91.189.92.201 80]
Err archive.ubuntu.com raring-security/restricted Sources
  404  Not Found [IP: 91.189.92.201 80]
Err archive.ubuntu.com raring-security/universe Sources
  404  Not Found [IP: 91.189.92.201 80]
Err archive.ubuntu.com raring-security/multiverse Sources
  404  Not Found [IP: 91.189.92.201 80]
W: Failed to fetch
ports.ubuntu.com/ubuntu-ports/dists/raring-security/main/binary-armhf/Packages
404  Not Found [IP: 91.189.88.140 80]

W: Failed to fetch
ports.ubuntu.com/ubuntu-ports/dists/raring-security/restricted/binary-armhf/Packages
404  Not Found [IP: 91.189.88.140 80]

W: Failed to fetch
ports.ubuntu.com/ubuntu-ports/dists/raring-security/universe/binary-armhf/Packages
404  Not Found [IP: 91.189.88.140 80]

W: Failed to fetch
ports.ubuntu.com/ubuntu-ports/dists/raring-security/multiverse/binary-armhf/Packages
404  Not Found [IP: 91.189.88.140 80]

W: Failed to fetch
archive.ubuntu.com/ubuntu/dists/raring/main/source/Sources  404  Not
Found [IP: 91.189.92.201 80]

W: Failed to fetch
archive.ubuntu.com/ubuntu/dists/raring/restricted/source/Sources
404  Not Found [IP: 91.189.92.201 80]

W: Failed to fetch
archive.ubuntu.com/ubuntu/dists/raring/universe/source/Sources  404
Not Found [IP: 91.189.92.201 80]

W: Failed to fetch
archive.ubuntu.com/ubuntu/dists/raring/multiverse/source/Sources
404  Not Found [IP: 91.189.92.201 80]

W: Failed to fetch
archive.ubuntu.com/ubuntu/dists/raring/main/binary-armhf/Packages
404  Not Found [IP: 91.189.92.201 80]

W: Failed to fetch
archive.ubuntu.com/ubuntu/dists/raring/restricted/binary-armhf/Packages
404  Not Found [IP: 91.189.92.201 80]

W: Failed to fetch
archive.ubuntu.com/ubuntu/dists/raring/universe/binary-armhf/Packages
404  Not Found [IP: 91.189.92.201 80]

W: Failed to fetch
archive.ubuntu.com/ubuntu/dists/raring/multiverse/binary-armhf/Packages
404  Not Found [IP: 91.189.92.201 80]

W: Failed to fetch
archive.ubuntu.com/ubuntu/dists/raring-updates/main/source/Sources
404  Not Found [IP: 91.189.92.201 80]

W: Failed to fetch
archive.ubuntu.com/ubuntu/dists/raring-updates/restricted/source/Sources
404  Not Found [IP: 91.189.92.201 80]

W: Failed to fetch
archive.ubuntu.com/ubuntu/dists/raring-updates/universe/source/Sources
404  Not Found [IP: 91.189.92.201 80]

W: Failed to fetch
archive.ubuntu.com/ubuntu/dists/raring-updates/multiverse/source/Sources
404  Not Found [IP: 91.189.92.201 80]

W: Failed to fetch
archive.ubuntu.com/ubuntu/dists/raring-updates/main/binary-armhf/Packages
404  Not Found [IP: 91.189.92.201 80]

W: Failed to fetch
archive.ubuntu.com/ubuntu/dists/raring-updates/restricted/binary-armhf/Packages
404  Not Found [IP: 91.189.92.201 80]

W: Failed to fetch
archive.ubuntu.com/ubuntu/dists/raring-updates/universe/binary-armhf/Packages
404  Not Found [IP: 91.189.92.201 80]

W: Failed to fetch
archive.ubuntu.com/ubuntu/dists/raring-updates/multiverse/binary-armhf/Packages
404  Not Found [IP: 91.189.92.201 80]

W: Failed to fetch
archive.ubuntu.com/ubuntu/dists/raring-security/main/source/Sources
404  Not Found [IP: 91.189.92.201 80]

W: Failed to fetch
archive.ubuntu.com/ubuntu/dists/raring-security/restricted/source/Sources
404  Not Found [IP: 91.189.92.201 80]

W: Failed to fetch
archive.ubuntu.com/ubuntu/dists/raring-security/universe/source/Sources
404  Not Found [IP: 91.189.92.201 80]

W: Failed to fetch
archive.ubuntu.com/ubuntu/dists/raring-security/multiverse/source/Sources
404  Not Found [IP: 91.189.92.201 80]

E: Some index files failed to download. They have been ignored, or old ones
used instead.

答案1

我尝试在浏览器上输入一些 IP 地址,果然,在查看列表时我注意到……这些都是“更新“ 和“安全”由于 13.04 已 EOL,因此不再提供更新 - LOL。

此版本的 Ubuntu 不再有更新。您必须使用较新版本的 Ubuntu 或从 /etc/apt/sources.list 中删除更新和安全 URL,我不建议这样做。

http://archive.ubuntu.com/ubuntu/dists/raring= 404 未找到

然而

http://archive.ubuntu.com/ubuntu/dists/precise= 连接

相关内容