Ubuntu apt-get 无法获取软件包

66

我刚刚安装了Ubuntu 13.10(Saucy),但是我尝试通过sudo apt-get install安装任何东西都失败了,并且会抛出一系列404错误。

例如 - 安装tmux

[jeeves@HAL] hadoop > sudo apt-get install tmux
[sudo] password for jeeves: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  tmux
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 247 kB of archives.
After this operation, 577 kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  tmux
Install these packages without verification [y/N]? Y
Err http://us.archive.ubuntu.com/ubuntu/ saucy/main tmux amd64 1.8-4
  404  Not Found [IP: 91.189.91.23 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/t/tmux/tmux_1.8-4_amd64.deb  404  Not Found [IP: 91.189.91.23 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

在这种情况下,它无法获取存档网址。
安装mysql-server时,我遇到了类似的问题。
....
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/m/mysql-5.5/mysql-common_5.5.37-0ubuntu0.13.10.1_all.deb  404  Not Found [IP: 91.189.91.23 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/m/mysql-5.5/libmysqlclient18_5.5.37-0ubuntu0.13.10.1_amd64.deb  404  Not Found [IP: 91.189.91.23 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/libd/libdbi-perl/libdbi-perl_1.627-1_amd64.deb  404  Not Found [IP: 91.189.91.15 80]
....

...和许多其他包。

我甚至尝试了sudo apt-get update并运行--fix-missing?

是Ubuntu存储库暂时关闭了(考虑到有多少人依赖它,这似乎很奇怪),还是我错过了什么?

编辑:当我尝试sudo apt-get update时,会出现以下情况。更新本身无法工作,因为找不到资源。

> sudo apt-get update
Hit http://download.virtualbox.org maverick InRelease
Ign http://us.archive.ubuntu.com saucy InRelease                                                
Ign http://us.archive.ubuntu.com saucy-updates InRelease                                        
Ign http://extras.ubuntu.com saucy InRelease                                                  
Ign http://us.archive.ubuntu.com saucy-backports InRelease           
Hit http://download.virtualbox.org maverick/contrib amd64 Packages   
Hit http://download.virtualbox.org maverick/non-free amd64 Packages  
Ign http://us.archive.ubuntu.com saucy Release.gpg                   
Hit http://extras.ubuntu.com saucy Release.gpg                       
Hit http://download.virtualbox.org maverick/contrib i386 Packages    
Ign http://us.archive.ubuntu.com saucy-updates Release.gpg                                       
Hit http://download.virtualbox.org maverick/non-free i386 Packages                               
Ign http://us.archive.ubuntu.com saucy-backports Release.gpg                                     
Ign http://us.archive.ubuntu.com saucy Release                                                   
Ign http://security.ubuntu.com saucy-security InRelease                                          
Hit http://extras.ubuntu.com saucy Release                           
Ign http://us.archive.ubuntu.com saucy-updates Release                                      
Ign http://security.ubuntu.com saucy-security Release.gpg                                   
Ign http://us.archive.ubuntu.com saucy-backports Release             
Ign http://security.ubuntu.com saucy-security Release                
Hit http://extras.ubuntu.com saucy/main Sources                      
Ign http://us.archive.ubuntu.com saucy/main Sources/DiffIndex        
Ign http://security.ubuntu.com saucy-security/main Sources/DiffIndex 
Ign http://us.archive.ubuntu.com saucy/restricted Sources/DiffIndex  
Ign http://security.ubuntu.com saucy-security/restricted Sources/DiffIndex
Hit http://extras.ubuntu.com saucy/main amd64 Packages               
Ign http://us.archive.ubuntu.com saucy/universe Sources/DiffIndex    
Ign http://security.ubuntu.com saucy-security/universe Sources/DiffIndex
Ign http://us.archive.ubuntu.com saucy/multiverse Sources/DiffIndex  
Hit http://extras.ubuntu.com saucy/main i386 Packages                
Ign http://security.ubuntu.com saucy-security/multiverse Sources/DiffIndex
Ign http://us.archive.ubuntu.com saucy/main amd64 Packages/DiffIndex 
Ign http://security.ubuntu.com saucy-security/main amd64 Packages/DiffIndex
Ign http://us.archive.ubuntu.com saucy/restricted amd64 Packages/DiffIndex
Ign http://security.ubuntu.com saucy-security/restricted amd64 Packages/DiffIndex
Ign http://us.archive.ubuntu.com saucy/universe amd64 Packages/DiffIndex
Ign http://security.ubuntu.com saucy-security/universe amd64 Packages/DiffIndex
Ign http://us.archive.ubuntu.com saucy/multiverse amd64 Packages/DiffIndex
Ign http://security.ubuntu.com saucy-security/multiverse amd64 Packages/DiffIndex
Ign http://us.archive.ubuntu.com saucy/main i386 Packages/DiffIndex  
Ign http://download.virtualbox.org maverick/contrib Translation-en_US
Ign http://security.ubuntu.com saucy-security/main i386 Packages/DiffIndex
Ign http://download.virtualbox.org maverick/contrib Translation-en   
Ign http://us.archive.ubuntu.com saucy/restricted i386 Packages/DiffIndex
Ign http://download.virtualbox.org maverick/non-free Translation-en_US
Ign http://download.virtualbox.org maverick/non-free Translation-en  
Ign http://us.archive.ubuntu.com saucy/universe i386 Packages/DiffIndex
Ign http://us.archive.ubuntu.com saucy/multiverse i386 Packages/DiffIndex
Ign http://security.ubuntu.com saucy-security/restricted i386 Packages/DiffIndex
Ign http://security.ubuntu.com saucy-security/universe i386 Packages/DiffIndex
Ign http://security.ubuntu.com saucy-security/multiverse i386 Packages/DiffIndex
Ign http://extras.ubuntu.com saucy/main Translation-en_US
Ign http://extras.ubuntu.com saucy/main Translation-en
Ign http://us.archive.ubuntu.com saucy-updates/main Sources/DiffIndex
Ign http://us.archive.ubuntu.com saucy-updates/restricted Sources/DiffIndex
Ign http://us.archive.ubuntu.com saucy-updates/universe Sources/DiffIndex
Ign http://us.archive.ubuntu.com saucy-updates/multiverse Sources/DiffIndex
Ign http://us.archive.ubuntu.com saucy-updates/main amd64 Packages/DiffIndex
Ign http://us.archive.ubuntu.com saucy-updates/restricted amd64 Packages/DiffIndex
Ign http://us.archive.ubuntu.com saucy-updates/universe amd64 Packages/DiffIndex
Ign http://us.archive.ubuntu.com saucy-updates/multiverse amd64 Packages/DiffIndex
Ign http://us.archive.ubuntu.com saucy-updates/main i386 Packages/DiffIndex
Ign http://us.archive.ubuntu.com saucy-updates/restricted i386 Packages/DiffIndex
Ign http://us.archive.ubuntu.com saucy-updates/universe i386 Packages/DiffIndex
Ign http://us.archive.ubuntu.com saucy-updates/multiverse i386 Packages/DiffIndex
Ign http://us.archive.ubuntu.com saucy-backports/main Sources/DiffIndex
Ign http://us.archive.ubuntu.com saucy-backports/restricted Sources/DiffIndex
Ign http://us.archive.ubuntu.com saucy-backports/universe Sources/DiffIndex
Ign http://us.archive.ubuntu.com saucy-backports/multiverse Sources/DiffIndex
Ign http://us.archive.ubuntu.com saucy-backports/main amd64 Packages/DiffIndex
Ign http://us.archive.ubuntu.com saucy-backports/restricted amd64 Packages/DiffIndex
Ign http://us.archive.ubuntu.com saucy-backports/universe amd64 Packages/DiffIndex
Ign http://us.archive.ubuntu.com saucy-backports/multiverse amd64 Packages/DiffIndex
Ign http://us.archive.ubuntu.com saucy-backports/main i386 Packages/DiffIndex
Ign http://us.archive.ubuntu.com saucy-backports/restricted i386 Packages/DiffIndex
Ign http://us.archive.ubuntu.com saucy-backports/universe i386 Packages/DiffIndex
Ign http://us.archive.ubuntu.com saucy-backports/multiverse i386 Packages/DiffIndex
Ign http://security.ubuntu.com saucy-security/main Translation-en_US
Ign http://security.ubuntu.com saucy-security/main Translation-en
Ign http://security.ubuntu.com saucy-security/multiverse Translation-en_US
Ign http://security.ubuntu.com saucy-security/multiverse Translation-en
Ign http://security.ubuntu.com saucy-security/restricted Translation-en_US
Ign http://security.ubuntu.com saucy-security/restricted Translation-en
Ign http://security.ubuntu.com saucy-security/universe Translation-en_US
Ign http://security.ubuntu.com saucy-security/universe Translation-en
Err http://security.ubuntu.com saucy-security/main Sources
  404  Not Found [IP: 91.189.91.23 80]
Err http://security.ubuntu.com saucy-security/restricted Sources
  404  Not Found [IP: 91.189.91.23 80]
Err http://security.ubuntu.com saucy-security/universe Sources
  404  Not Found [IP: 91.189.91.23 80]
Err http://security.ubuntu.com saucy-security/multiverse Sources
  404  Not Found [IP: 91.189.91.23 80]
Err http://security.ubuntu.com saucy-security/main amd64 Packages
  404  Not Found [IP: 91.189.91.23 80]
Err http://security.ubuntu.com saucy-security/restricted amd64 Packages
  404  Not Found [IP: 91.189.91.23 80]
Err http://security.ubuntu.com saucy-security/universe amd64 Packages
  404  Not Found [IP: 91.189.91.23 80]
Err http://security.ubuntu.com saucy-security/multiverse amd64 Packages
  404  Not Found [IP: 91.189.91.23 80]
Err http://security.ubuntu.com saucy-security/main i386 Packages
  404  Not Found [IP: 91.189.91.23 80]
Err http://security.ubuntu.com saucy-security/restricted i386 Packages
  404  Not Found [IP: 91.189.91.23 80]
Err http://security.ubuntu.com saucy-security/universe i386 Packages
  404  Not Found [IP: 91.189.91.23 80]
Err http://security.ubuntu.com saucy-security/multiverse i386 Packages
  404  Not Found [IP: 91.189.91.23 80]
Ign http://us.archive.ubuntu.com saucy/main Translation-en_US
Ign http://us.archive.ubuntu.com saucy/main Translation-en
Ign http://us.archive.ubuntu.com saucy/multiverse Translation-en_US
Ign http://us.archive.ubuntu.com saucy/multiverse Translation-en
Ign http://us.archive.ubuntu.com saucy/restricted Translation-en_US
Ign http://us.archive.ubuntu.com saucy/restricted Translation-en
Ign http://us.archive.ubuntu.com saucy/universe Translation-en_US
Ign http://us.archive.ubuntu.com saucy/universe Translation-en
Ign http://us.archive.ubuntu.com saucy-updates/main Translation-en_US
Ign http://us.archive.ubuntu.com saucy-updates/main Translation-en
Ign http://us.archive.ubuntu.com saucy-updates/multiverse Translation-en_US
Ign http://us.archive.ubuntu.com saucy-updates/multiverse Translation-en
Ign http://us.archive.ubuntu.com saucy-updates/restricted Translation-en_US
Ign http://us.archive.ubuntu.com saucy-updates/restricted Translation-en
Ign http://us.archive.ubuntu.com saucy-updates/universe Translation-en_US
Ign http://us.archive.ubuntu.com saucy-updates/universe Translation-en
Ign http://us.archive.ubuntu.com saucy-backports/main Translation-en_US
Ign http://us.archive.ubuntu.com saucy-backports/main Translation-en
Ign http://us.archive.ubuntu.com saucy-backports/multiverse Translation-en_US
Ign http://us.archive.ubuntu.com saucy-backports/multiverse Translation-en
Ign http://us.archive.ubuntu.com saucy-backports/restricted Translation-en_US
Ign http://us.archive.ubuntu.com saucy-backports/restricted Translation-en
Ign http://us.archive.ubuntu.com saucy-backports/universe Translation-en_US
Ign http://us.archive.ubuntu.com saucy-backports/universe Translation-en
Err http://us.archive.ubuntu.com saucy/main Sources
  404  Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy/restricted Sources
  404  Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy/universe Sources
  404  Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy/multiverse Sources
  404  Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy/main amd64 Packages
  404  Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy/restricted amd64 Packages
  404  Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy/universe amd64 Packages
  404  Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy/multiverse amd64 Packages
  404  Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy/main i386 Packages
  404  Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy/restricted i386 Packages
  404  Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy/universe i386 Packages
  404  Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy/multiverse i386 Packages
  404  Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-updates/main Sources
  404  Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-updates/restricted Sources
  404  Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-updates/universe Sources
  404  Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-updates/multiverse Sources
  404  Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-updates/main amd64 Packages
  404  Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-updates/restricted amd64 Packages
  404  Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-updates/universe amd64 Packages
  404  Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-updates/multiverse amd64 Packages
  404  Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-updates/main i386 Packages
  404  Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-updates/restricted i386 Packages
  404  Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-updates/universe i386 Packages
  404  Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-updates/multiverse i386 Packages
  404  Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-backports/main Sources
  404  Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-backports/restricted Sources
  404  Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-backports/universe Sources
  404  Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-backports/multiverse Sources
  404  Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-backports/main amd64 Packages
  404  Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-backports/restricted amd64 Packages
  404  Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-backports/universe amd64 Packages
  404  Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-backports/multiverse amd64 Packages
  404  Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-backports/main i386 Packages
  404  Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-backports/restricted i386 Packages
  404  Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-backports/universe i386 Packages
  404  Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-backports/multiverse i386 Packages
  404  Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy/main/source/Sources  404  Not Found [IP: 91.189.91.24 80]

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/saucy-security/main/source/Sources  404  Not Found [IP: 91.189.91.23 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy/restricted/source/Sources  404  Not Found [IP: 91.189.91.24 80]

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/saucy-security/restricted/source/Sources  404  Not Found [IP: 91.189.91.23 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy/universe/source/Sources  404  Not Found [IP: 91.189.91.24 80]

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/saucy-security/universe/source/Sources  404  Not Found [IP: 91.189.91.23 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy/multiverse/source/Sources  404  Not Found [IP: 91.189.91.24 80]

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/saucy-security/multiverse/source/Sources  404  Not Found [IP: 91.189.91.23 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy/main/binary-amd64/Packages  404  Not Found [IP: 91.189.91.24 80]

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/saucy-security/main/binary-amd64/Packages  404  Not Found [IP: 91.189.91.23 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy/restricted/binary-amd64/Packages  404  Not Found [IP: 91.189.91.24 80]

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/saucy-security/restricted/binary-amd64/Packages  404  Not Found [IP: 91.189.91.23 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy/universe/binary-amd64/Packages  404  Not Found [IP: 91.189.91.24 80]

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/saucy-security/universe/binary-amd64/Packages  404  Not Found [IP: 91.189.91.23 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy/multiverse/binary-amd64/Packages  404  Not Found [IP: 91.189.91.24 80]

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/saucy-security/multiverse/binary-amd64/Packages  404  Not Found [IP: 91.189.91.23 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy/main/binary-i386/Packages  404  Not Found [IP: 91.189.91.24 80]

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/saucy-security/main/binary-i386/Packages  404  Not Found [IP: 91.189.91.23 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy/restricted/binary-i386/Packages  404  Not Found [IP: 91.189.91.24 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy/universe/binary-i386/Packages  404  Not Found [IP: 91.189.91.24 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy/multiverse/binary-i386/Packages  404  Not Found [IP: 91.189.91.24 80]

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/saucy-security/restricted/binary-i386/Packages  404  Not Found [IP: 91.189.91.23 80]

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/saucy-security/universe/binary-i386/Packages  404  Not Found [IP: 91.189.91.23 80]

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/saucy-security/multiverse/binary-i386/Packages  404  Not Found [IP: 91.189.91.23 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-updates/main/source/Sources  404  Not Found [IP: 91.189.91.24 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-updates/restricted/source/Sources  404  Not Found [IP: 91.189.91.24 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-updates/universe/source/Sources  404  Not Found [IP: 91.189.91.24 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-updates/multiverse/source/Sources  404  Not Found [IP: 91.189.91.24 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-updates/main/binary-amd64/Packages  404  Not Found [IP: 91.189.91.24 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-updates/restricted/binary-amd64/Packages  404  Not Found [IP: 91.189.91.24 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-updates/universe/binary-amd64/Packages  404  Not Found [IP: 91.189.91.24 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-updates/multiverse/binary-amd64/Packages  404  Not Found [IP: 91.189.91.24 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-updates/main/binary-i386/Packages  404  Not Found [IP: 91.189.91.24 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-updates/restricted/binary-i386/Packages  404  Not Found [IP: 91.189.91.24 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-updates/universe/binary-i386/Packages  404  Not Found [IP: 91.189.91.24 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-updates/multiverse/binary-i386/Packages  404  Not Found [IP: 91.189.91.24 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-backports/main/source/Sources  404  Not Found [IP: 91.189.91.24 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-backports/restricted/source/Sources  404  Not Found [IP: 91.189.91.24 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-backports/universe/source/Sources  404  Not Found [IP: 91.189.91.24 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-backports/multiverse/source/Sources  404  Not Found [IP: 91.189.91.24 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-backports/main/binary-amd64/Packages  404  Not Found [IP: 91.189.91.24 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-backports/restricted/binary-amd64/Packages  404  Not Found [IP: 91.189.91.24 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-backports/universe/binary-amd64/Packages  404  Not Found [IP: 91.189.91.24 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-backports/multiverse/binary-amd64/Packages  404  Not Found [IP: 91.189.91.24 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-backports/main/binary-i386/Packages  404  Not Found [IP: 91.189.91.24 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-backports/restricted/binary-i386/Packages  404  Not Found [IP: 91.189.91.24 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-backports/universe/binary-i386/Packages  404  Not Found [IP: 91.189.91.24 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-backports/multiverse/binary-i386/Packages  404  Not Found [IP: 91.189.91.24 80]

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

4
可能您的索引已经过期,因此您正在尝试获取不再存在的资源。在执行“apt-get update”后重试。 - tripleee
1
不涉及编程; 提名迁移到https://superuser.com/(不过那里可能会有重复内容)。 - tripleee
我尝试了 sudo apt-get update 命令,但由于缺少资源而失败。请参见上面的 EDIT 输出。谢谢! - user2490003
我已经将问题重新发布到“Ask Ubuntu”论坛上:http://askubuntu.com/questions/625484/ubuntu-apt-get-unable-to-fetch-packages - user2490003
可能是 Dockerfile 构建失败 的重复问题。 - Vineet Jain
在我的情况下,运行以下命令解决了问题。sudo apt --fix-broken install - kunjung sherpa
15个回答

132
遇到了类似的问题。
这与使用非LTS版本的Ubuntu有关,称为“生命周期结束版本”。由于这些版本已停止支持,您可以在this link上检查您的Ubuntu是否处于生命周期结束版本。
最简单的解决方案是执行以下两个步骤:
1. 备份您的源列表 `sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup`
2. 打开源文件`/etc/apt/sources.list`,并将所有实例中的us.archivearchive重命名为: - `http://old-releases.ubuntu.com/ubuntu/` - 同样的操作也要对`http://security.ubuntu.com/ubuntu/dists/saucy-security/universe/binary-i386/Packages`进行。
3. 在执行上述操作后运行`sudo apt-get update`。
这样应该可以解决问题。

安全警告:请尽快将您的Ubuntu更新至LTS版本(查看当前版本请参考文档这里),否则您将无法获得最新的安全补丁。本答案中提供的解决方法绝对不是您在生产机器上部署的解决方案。

非美国用户:本地化版本可能使用不同的变体(例如,搜索fr.archive.ubuntu.com而不是us.archive.ubuntu.com - 根据您的地区更改"fr")


3
我假设这样做存在安全问题,如果确实存在这种情况,也许应该在答案中加入一个大警告(例如,“注意:已停用的版本不再接收安全更新。如果您这样做,不要认为您正在获得最新软件!!”)。谢谢! - Dolan Antenucci
2
这应该怎么工作?现在我得到的是:W: 无法获取 http://old-security.ubuntu - Matej J
2
Err:10 http://old-releases.ubuntu.com/ubuntu eoan Release 404 Not Found [IP: 91.189.88.154 90] - alper

45

我尝试使用:

sudo do-release-upgrade

然后使用:

sudo apt-get update

安装完毕后,您将能够安装任何软件包。

如果这对您无效,请尝试更改apt.conf中的网络配置。


2
我得到了一个“E:无效操作do-release-upgrade”的错误。 - Souradeep Nanda
1
@SouradeepNanda 尝试第二步 sudo apt-get update,如果问题仍然存在,则尝试查找您遇到的错误原因。同时请查看其他解决方案。 - bhansa

37

为了方便任何谷歌搜索者,如果您在构建Docker镜像时遇到此错误,请在失败的RUN命令前加上

apt-get update &&

当Docker使用缓存镜像时会出现这种情况。为什么第二次使用缓存镜像时不会有最新的repo信息,这完全超出了我的理解范围,但在每个apt-get命令之前都加上update就可以解决这个问题。


5
缓存的镜像可能包含过时的软件包信息。请改用 --no-cache 参数重新运行您的 Docker 构建。 - GiriB

16

8

在我的情况下,它无法获取be.archives.ubuntu.com(比利时),所以我按照被接受的答案建议的,在此链接上生成了一个新的sources.plist。

对我有用的事情就是,在生成sources.plist时将国家更改为美国。然后我就可以再次运行它。

apt-get update

不应该使用 sudo apt-get update - alper
在我搬到新的国家后,我也遇到了同样的问题。一个更简单的解决方法是打开设置,选择软件和更新。然后将“下载自”选项更改为另一个服务器。 - Florent Chatterji

7

为了简化起见,下面是我所做的。

cd /etc/apt
mkdir test
cp sources.lst test
cd test
sed -i -- 's/us.archive/old-releases/g' *
sed -i -- 's/security/old-releases/g' *
cp sources.lst ../
sudo apt-get update

4
如果你在使用VirtualBox和虚拟机时遇到问题,可以通过更改 设置 -> 网络 -> 连接方式NAT更改为桥接适配器来解决。

4

在 Ubuntu WSL 上运行 sudo apt-get install python3-env 时遇到了以下问题:

Err:1 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 python3.5-venv amd64 3.5.2-2ubuntu0~16.04.9 
404  Not Found [IP: 2001:67c:1360:8001::23 80]

运行

sudo apt-get update

解决了这些问题。


3

这可能是由于使用代理造成的。检查您是否在 /etc/environment 文件中定义了代理:

cat /etc/environment

如果您有任何带有 http_proxy 或 https_proxy 大小写的设置,则需要 unset 它们。


3
在Mac上:直到我意识到“屏幕使用时间”正在阻止更新网站,否则一切都无济于事!关闭内容过滤即可解决。

1
哇,你刚刚又帮我省了几个小时调试的时间。而且我只是为了浏览Reddit打开了内容拦截! - Sean D.

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接