apt-get无法获取错误

时间:2013-10-20 18:14:39

标签: linux apt-get backtrack-linux

我正在尝试使用apt-get。我运行以下命令

apt-get update

但是我收到了这个错误

Err http://all.repository.backtrack-linux.org revolution Release.gpg                                                                                                                           
  Could not connect to all.repository.backtrack-linux.org:80 (37.221.173.214). - connect (111: Connection refused)
Err http://all.repository.backtrack-linux.org/ revolution/main Translation-en_US                                                                                                               
  Unable to connect to all.repository.backtrack-linux.org:http:
Err http://all.repository.backtrack-linux.org/ revolution/microverse Translation-en_US                                                                                                         
  Unable to connect to all.repository.backtrack-linux.org:http:
Err http://all.repository.backtrack-linux.org/ revolution/non-free Translation-en_US                                                                                                           
  Unable to connect to all.repository.backtrack-linux.org:http:
Err http://all.repository.backtrack-linux.org/ revolution/testing Translation-en_US                                                                                                            
  Unable to connect to all.repository.backtrack-linux.org:http:
Err http://64.repository.backtrack-linux.org revolution Release.gpg                                                                                                                            
  Could not connect to 64.repository.backtrack-linux.org:80 (37.221.173.214). - connect (111: Connection refused)
Err http://64.repository.backtrack-linux.org/ revolution/main Translation-en_US                                                             
  Unable to connect to 64.repository.backtrack-linux.org:http:
Err http://64.repository.backtrack-linux.org/ revolution/microverse Translation-en_US                                                       
  Unable to connect to 64.repository.backtrack-linux.org:http:
Err http://64.repository.backtrack-linux.org/ revolution/non-free Translation-en_US                                                         
  Unable to connect to 64.repository.backtrack-linux.org:http:
Err http://64.repository.backtrack-linux.org/ revolution/testing Translation-en_US                                                          
  Unable to connect to 64.repository.backtrack-linux.org:http:
Err http://source.repository.backtrack-linux.org revolution Release.gpg                                                                     
  Could not connect to source.repository.backtrack-linux.org:80 (37.221.173.214). - connect (111: Connection refused)
Err http://source.repository.backtrack-linux.org/ revolution/main Translation-en_US                                                         
  Unable to connect to source.repository.backtrack-linux.org:http:
Err http://source.repository.backtrack-linux.org/ revolution/microverse Translation-en_US                                                   
  Unable to connect to source.repository.backtrack-linux.org:http:
Err http://source.repository.backtrack-linux.org/ revolution/non-free Translation-en_US                                                     
  Unable to connect to source.repository.backtrack-linux.org:http:
Err http://source.repository.backtrack-linux.org/ revolution/testing Translation-en_US                                                      
  Unable to connect to source.repository.backtrack-linux.org:http:
Reading package lists... Done                                                                                                               
W: Failed to fetch http://all.repository.backtrack-linux.org/dists/revolution/Release.gpg  Could not connect to all.repository.backtrack-linux.org:80 (37.221.173.214). - connect (111: Connection refused)

W: Failed to fetch http://all.repository.backtrack-linux.org/dists/revolution/main/i18n/Translation-en_US.bz2  Unable to connect to all.repository.backtrack-linux.org:http:

W: Failed to fetch http://all.repository.backtrack-linux.org/dists/revolution/microverse/i18n/Translation-en_US.bz2  Unable to connect to all.repository.backtrack-linux.org:http:

W: Failed to fetch http://all.repository.backtrack-linux.org/dists/revolution/non-free/i18n/Translation-en_US.bz2  Unable to connect to all.repository.backtrack-linux.org:http:

W: Failed to fetch http://all.repository.backtrack-linux.org/dists/revolution/testing/i18n/Translation-en_US.bz2  Unable to connect to all.repository.backtrack-linux.org:http:

W: Failed to fetch http://64.repository.backtrack-linux.org/dists/revolution/Release.gpg  Could not connect to 64.repository.backtrack-linux.org:80 (37.221.173.214). - connect (111: Connection refused)

W: Failed to fetch http://64.repository.backtrack-linux.org/dists/revolution/main/i18n/Translation-en_US.bz2  Unable to connect to 64.repository.backtrack-linux.org:http:

W: Failed to fetch http://64.repository.backtrack-linux.org/dists/revolution/microverse/i18n/Translation-en_US.bz2  Unable to connect to 64.repository.backtrack-linux.org:http:

W: Failed to fetch http://64.repository.backtrack-linux.org/dists/revolution/non-free/i18n/Translation-en_US.bz2  Unable to connect to 64.repository.backtrack-linux.org:http:

W: Failed to fetch http://64.repository.backtrack-linux.org/dists/revolution/testing/i18n/Translation-en_US.bz2  Unable to connect to 64.repository.backtrack-linux.org:http:

W: Failed to fetch http://source.repository.backtrack-linux.org/dists/revolution/Release.gpg  Could not connect to source.repository.backtrack-linux.org:80 (37.221.173.214). - connect (111: Connection refused)

W: Failed to fetch http://source.repository.backtrack-linux.org/dists/revolution/main/i18n/Translation-en_US.bz2  Unable to connect to source.repository.backtrack-linux.org:http:

W: Failed to fetch http://source.repository.backtrack-linux.org/dists/revolution/microverse/i18n/Translation-en_US.bz2  Unable to connect to source.repository.backtrack-linux.org:http:

W: Failed to fetch http://source.repository.backtrack-linux.org/dists/revolution/non-free/i18n/Translation-en_US.bz2  Unable to connect to source.repository.backtrack-linux.org:http:

W: Failed to fetch http://source.repository.backtrack-linux.org/dists/revolution/testing/i18n/Translation-en_US.bz2  Unable to connect to source.repository.backtrack-linux.org:http:

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

有谁知道这是什么问题? 我正在使用vmware播放器

2 个答案:

答案 0 :(得分:0)

第一个选项

all.repository.backtrack-linux.org无法访问(在浏览器中尝试)

第二个选项

问题是您的虚拟机没有正确的网络配置。

apt-get无法连接到网络。

要验证它,请尝试:

ping www.google.com

如果它在几秒钟内没有打印结果,那么您的虚拟机中没有互联网连接。

查看here了解网络配置

默认情况下,应启用桥接网络并开箱即用。检查您的VmWare配置。否则,通常会在链接中详细说明有关设置网络配置的说明。

答案 1 :(得分:-2)

我几天都遇到了同样的问题,

解决方案: 您需要重置" sources.list"文件并执行此操作,您将按照以下步骤操作:

  • 打开终端
  • 键入" software-properties-gtk",然后按Enter键
  • 它将为您打开以下屏幕点击"还原"右下角的按钮
  • 单击“关闭”按钮,然后允许立即更新关闭所有窗口 返回终端并键入" sudo apt-get update",以便您可以更新并且它应该可以正常工作。

我写了一篇关于图片的帖子,请在这里查看:http://saleh360.blogspot.com/2015/05/ubuntu-update-some-index-files-failed.html