apt-get 出现“无法连接”错误:可能存在代理?

apt-get 出现“无法连接”错误:可能存在代理?

几天来,我一直遇到“sudo apt-get update”的问题。我尝试了所有能找到的解决方案,但都无济于事。以下是“apt-get update”的输出。

Ign http://us.archive.ubuntu.com 精确的 InRelease                             
Ign http://us.archive.ubuntu.com precise-updates InRelease                     
Ign http://us.archive.ubuntu.com precise-backports InRelease                   
Ign http://us.archive.ubuntu.com precise-security InRelease                    
Ign http://archive.ubuntu.com 精确的 InRelease                                
错误 http://us.archive.ubuntu.com 精确 Release.gpg                           
  无法连接到 69.163.233.85:80:
错误 http://us.archive.ubuntu.com precise-updates Release.gpg
  无法连接到 69.163.233.85:80:
错误 http://us.archive.ubuntu.com precise-backports Release.gpg
  无法连接到 69.163.233.85:80:
错误 http://archive.ubuntu.com 精确 Release.gpg
  无法连接到 69.163.233.85:80:
错误 http://us.archive.ubuntu.com precise-security Release.gpg
  无法连接到 69.163.233.85:80:
Ign http://us.archive.ubuntu.com 精确发布
Ign http://us.archive.ubuntu.com precise-updates 发布
Ign http://archive.ubuntu.com 精确发布
Ign http://us.archive.ubuntu.com precise-backports 发布
Ign http://us.archive.ubuntu.com 精确安全版本
Ign http://us.archive.ubuntu.com precise/main TranslationIndex
Ign http://us.archive.ubuntu.com precise/multiverse 翻译索引
Ign http://us.archive.ubuntu.com 精确/受限翻译索引
Ign http://us.archive.ubuntu.com precise/universe 翻译索引
Ign http://archive.ubuntu.com precise/main TranslationIndex
Ign http://us.archive.ubuntu.com precise-updates/main TranslationIndex
Ign http://us.archive.ubuntu.com precise-updates/multiverse 翻译索引
Ign http://us.archive.ubuntu.com precise-updates/restricted TranslationIndex
Ign http://us.archive.ubuntu.com precise-updates/universe 翻译索引
Ign http://us.archive.ubuntu.com precise-backports/main TranslationIndex
Ign http://us.archive.ubuntu.com precise-backports/multiverse 翻译索引
Ign http://us.archive.ubuntu.com precise-backports/restricted TranslationIndex
Ign http://us.archive.ubuntu.com precise-backports/universe 翻译索引
Ign http://us.archive.ubuntu.com precise-security/main 翻译索引
Ign http://us.archive.ubuntu.com precise-security/multiverse 翻译索引
Ign http://us.archive.ubuntu.com precise-security/restricted TranslationIndex
Ign http://us.archive.ubuntu.com precise-security/universe 翻译索引
错误 http://archive.ubuntu.com precise/main 来源
  无法连接到 69.163.233.85:80:
错误 http://archive.ubuntu.com precise/main i386 软件包
  无法连接到 69.163.233.85:80:
呃 http://archive.ubuntu.com precise/main Translation-en_US
  无法连接到 69.163.233.85:80:
呃 http://archive.ubuntu.com precise/main 翻译-en
  无法连接到 69.163.233.85:80:
错误 http://us.archive.ubuntu.com precise/main 来源
  无法连接到 69.163.233.85:80:
呃 http://us.archive.ubuntu.com 精确/受限来源
  无法连接到 69.163.233.85:80:
呃 http://us.archive.ubuntu.com precise/universe 来源
  无法连接到 69.163.233.85:80:
呃 http://us.archive.ubuntu.com precise/multiverse 来源
  无法连接到 69.163.233.85:80:
错误 http://us.archive.ubuntu.com precise/main i386 软件包
  无法连接到 69.163.233.85:80:
错误 http://us.archive.ubuntu.com 精确/受限的 i386 软件包
  无法连接到 69.163.233.85:80:
错误 http://us.archive.ubuntu.com precise/universe i386 软件包
  无法连接到 69.163.233.85:80:
错误 http://us.archive.ubuntu.com precise/multiverse i386 软件包
  无法连接到 69.163.233.85:80:
错误 http://us.archive.ubuntu.com precise-updates/main 来源
  无法连接到 69.163.233.85:80:
呃 http://us.archive.ubuntu.com precise-updates/restricted 来源
  无法连接到 69.163.233.85:80:
呃 http://us.archive.ubuntu.com precise-updates/universe 来源
  无法连接到 69.163.233.85:80:
呃 http://us.archive.ubuntu.com precise-updates/multiverse 来源
  无法连接到 69.163.233.85:80:
错误 http://us.archive.ubuntu.com precise-updates/main i386 软件包
  无法连接到 69.163.233.85:80:
错误 http://us.archive.ubuntu.com precise-updates/restricted i386 软件包
  无法连接到 69.163.233.85:80:
错误 http://us.archive.ubuntu.com precise-updates/universe i386 软件包
  无法连接到 69.163.233.85:80:
错误 http://us.archive.ubuntu.com precise-updates/multiverse i386 软件包
  无法连接到 69.163.233.85:80:
呃 http://us.archive.ubuntu.com precise-backports/main 来源
  无法连接到 69.163.233.85:80:
呃 http://us.archive.ubuntu.com precise-backports/restricted 来源
  无法连接到 69.163.233.85:80:
呃 http://us.archive.ubuntu.com precise-backports/universe 来源
  无法连接到 69.163.233.85:80:
呃 http://us.archive.ubuntu.com precise-backports/multiverse 来源
  无法连接到 69.163.233.85:80:
错误 http://us.archive.ubuntu.com precise-backports/main i386 软件包
  无法连接到 69.163.233.85:80:
错误 http://us.archive.ubuntu.com precise-backports/restricted i386 软件包
  无法连接到 69.163.233.85:80:
呃 http://us.archive.ubuntu.com precise-backports/universe i386 软件包
  无法连接到 69.163.233.85:80:
呃 http://us.archive.ubuntu.com precise-backports/multiverse i386 软件包
  无法连接到 69.163.233.85:80:
呃 http://us.archive.ubuntu.com precise-security/main 来源
  无法连接到 69.163.233.85:80:
呃 http://us.archive.ubuntu.com precise-security/restricted 来源
  无法连接到 69.163.233.85:80:
呃 http://us.archive.ubuntu.com precise-security/universe 来源
  无法连接到 69.163.233.85:80:
呃 http://us.archive.ubuntu.com precise-security/multiverse 来源
  无法连接到 69.163.233.85:80:
错误 http://us.archive.ubuntu.com precise-security/main i386 软件包
  无法连接到 69.163.233.85:80:
错误 http://us.archive.ubuntu.com precise-security/restricted i386 软件包
  无法连接到 69.163.233.85:80:
错误 http://us.archive.ubuntu.com precise-security/universe i386 软件包
  无法连接到 69.163.233.85:80:
错误 http://us.archive.ubuntu.com precise-security/multiverse i386 软件包
  无法连接到 69.163.233.85:80:
呃 http://us.archive.ubuntu.com precise/main Translation-en_US
  无法连接到 69.163.233.85:80:
呃 http://us.archive.ubuntu.com precise/main 翻译-en
  无法连接到 69.163.233.85:80:
呃 http://us.archive.ubuntu.com precise/multiverse Translation-en_US
  无法连接到 69.163.233.85:80:
呃 http://us.archive.ubuntu.com precise/multiverse 翻译-en
  无法连接到 69.163.233.85:80:
呃 http://us.archive.ubuntu.com 精确/受限 Translation-en_US
  无法连接到 69.163.233.85:80:
呃 http://us.archive.ubuntu.com 精确/受限 翻译-en
  无法连接到 69.163.233.85:80:
呃 http://us.archive.ubuntu.com precise/universe 翻译-en_US
  无法连接到 69.163.233.85:80:
呃 http://us.archive.ubuntu.com precise/universe 翻译-en
  无法连接到 69.163.233.85:80:
呃 http://us.archive.ubuntu.com precise-updates/main Translation-en_US
  无法连接到 69.163.233.85:80:
呃 http://us.archive.ubuntu.com precise-updates/main 翻译-en
  无法连接到 69.163.233.85:80:
呃 http://us.archive.ubuntu.com precise-updates/multiverse Translation-en_US
  无法连接到 69.163.233.85:80:
呃 http://us.archive.ubuntu.com precise-updates/multiverse 翻译-en
  无法连接到 69.163.233.85:80:
呃 http://us.archive.ubuntu.com precise-updates/restricted Translation-en_US
  无法连接到 69.163.233.85:80:
呃 http://us.archive.ubuntu.com precise-updates/restricted 翻译-en
  无法连接到 69.163.233.85:80:
呃 http://us.archive.ubuntu.com precise-updates/universe Translation-en_US
  无法连接到 69.163.233.85:80:
呃 http://us.archive.ubuntu.com precise-updates/universe 翻译-en
  无法连接到 69.163.233.85:80:
呃 http://us.archive.ubuntu.com precise-backports/main Translation-en_US
  无法连接到 69.163.233.85:80:
呃 http://us.archive.ubuntu.com precise-backports/main 翻译-en
  无法连接到 69.163.233.85:80:
呃 http://us.archive.ubuntu.com precise-backports/multiverse Translation-en_US
  无法连接到 69.163.233.85:80:
呃 http://us.archive.ubuntu.com precise-backports/multiverse 翻译-en
  无法连接到 69.163.233.85:80:
呃 http://us.archive.ubuntu.com precise-backports/restricted Translation-en_US
  无法连接到 69.163.233.85:80:
呃 http://us.archive.ubuntu.com precise-backports/restricted 翻译-en
  无法连接到 69.163.233.85:80:
呃 http://us.archive.ubuntu.com precise-backports/universe Translation-en_US
  无法连接到 69.163.233.85:80:
呃 http://us.archive.ubuntu.com precise-backports/universe 翻译-en
  无法连接到 69.163.233.85:80:
呃 http://us.archive.ubuntu.com precise-security/main Translation-en_US
  无法连接到 69.163.233.85:80:
呃 http://us.archive.ubuntu.com precise-security/main 翻译-en
  无法连接到 69.163.233.85:80:
呃 http://us.archive.ubuntu.com precise-security/multiverse Translation-en_US
  无法连接到 69.163.233.85:80:
呃 http://us.archive.ubuntu.com precise-security/multiverse 翻译-en
  无法连接到 69.163.233.85:80:
呃 http://us.archive.ubuntu.com precise-security/restricted Translation-en_US
  无法连接到 69.163.233.85:80:
呃 http://us.archive.ubuntu.com precise-security/restricted 翻译-en
  无法连接到 69.163.233.85:80:
呃 http://us.archive.ubuntu.com precise-security/universe Translation-en_US
  无法连接到 69.163.233.85:80:
呃 http://us.archive.ubuntu.com precise-security/universe 翻译-en
  无法连接到 69.163.233.85:80:
W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise/Release.gpg 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise-updates/Release.gpg 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise-backports/Release.gpg 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise-security/Release.gpg 无法连接到 69.163.233.85:80:

W:无法获取 http://archive.ubuntu.com/dists/precise/Release.gpg 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise/main/source/Sources 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise/restricted/source/Sources 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise/universe/source/Sources 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise/multiverse/source/Sources 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise/main/binary-i386/Packages 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise/restricted/binary-i386/Packages 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise/universe/binary-i386/Packages 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise/multiverse/binary-i386/Packages 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise-updates/main/source/Sources 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise-updates/restricted/source/Sources 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise-updates/universe/source/Sources 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise-updates/multiverse/source/Sources 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise-updates/main/binary-i386/Packages 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise-updates/restricted/binary-i386/Packages 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise-updates/universe/binary-i386/Packages 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise-updates/multiverse/binary-i386/Packages 无法连接到 69.163.233.85:80:

W:无法获取 http://archive.ubuntu.com/dists/precise/main/source/Sources 无法连接到 69.163.233.85:80:

W:无法获取 http://archive.ubuntu.com/dists/precise/main/binary-i386/Packages 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise-backports/main/source/Sources 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise-backports/restricted/source/Sources 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise-backports/universe/source/Sources 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise-backports/multiverse/source/Sources 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise-backports/main/binary-i386/Packages 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise-backports/restricted/binary-i386/Packages 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise-backports/universe/binary-i386/Packages 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise-backports/multiverse/binary-i386/Packages 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise-security/main/source/Sources 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise-security/restricted/source/Sources 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise-security/universe/source/Sources 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise-security/multiverse/source/Sources 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise-security/main/binary-i386/Packages 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise-security/restricted/binary-i386/Packages 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise-security/universe/binary-i386/Packages 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise-security/multiverse/binary-i386/Packages 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise/main/i18n/Translation-en_US 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise/main/i18n/Translation-en 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise/multiverse/i18n/Translation-en_US 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise/multiverse/i18n/Translation-en 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise/restricted/i18n/Translation-en_US 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise/restricted/i18n/Translation-en 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise/universe/i18n/Translation-en_US 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise/universe/i18n/Translation-en 无法连接到 69.163.233.85:80:

W:无法获取 http://archive.ubuntu.com/dists/precise/main/i18n/Translation-en_US 无法连接到 69.163.233.85:80:

W:无法获取 http://archive.ubuntu.com/dists/precise/main/i18n/Translation-en 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise-updates/main/i18n/Translation-en_US 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise-updates/main/i18n/Translation-en 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise-updates/multiverse/i18n/Translation-en_US 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise-updates/multiverse/i18n/Translation-en 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise-updates/restricted/i18n/Translation-en_US 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise-updates/restricted/i18n/Translation-en 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise-updates/universe/i18n/Translation-en_US 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise-updates/universe/i18n/Translation-en 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise-backports/main/i18n/Translation-en_US 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise-backports/main/i18n/Translation-en 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise-backports/multiverse/i18n/Translation-en_US 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise-backports/multiverse/i18n/Translation-en 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise-backports/restricted/i18n/Translation-en_US 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise-backports/restricted/i18n/Translation-en 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise-backports/universe/i18n/Translation-en_US 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise-backports/universe/i18n/Translation-en 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise-security/main/i18n/Translation-en_US 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise-security/main/i18n/Translation-en 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise-security/multiverse/i18n/Translation-en_US 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise-security/multiverse/i18n/Translation-en 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise-security/restricted/i18n/Translation-en_US 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise-security/restricted/i18n/Translation-en 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise-security/universe/i18n/Translation-en_US 无法连接到 69.163.233.85:80:

W:无法获取 http://us.archive.ubuntu.com/ubuntu/dists/precise-security/universe/i18n/Translation-en 无法连接到 69.163.233.85:80:

E:部分索引文件下载失败。它们已被忽略或使用旧文件代替。

答案1

关键是这部分:

无法连接到69.163.233.85:80
  • 该 IP 地址不对应us.archive.ubuntu.com
  • 事实上,它属于托管公司 DreamHost!
  • 因此,这很可能是代理或手动 IP 映射,/etc/hosts已设置但不再起作用。请将输出粘贴到 pastebin 中apt-config dump,我们会尝试帮助您。

答案2

就我而言,似乎全局代理设置仍然有效apt,但对系统的其余部分无效。通过网络设置重新应用不使用代理,问题就解决了。

相关内容