apt-get update 失败,出现 404

apt-get update 失败,出现 404

最近,我在 apt-get 更新时开始遇到 404 错误,而据我所知,并没有发生特别有趣的变化。

dh@ubuntu:/etc/apt$ sudo apt-get update
Ign file:  InRelease
Ign file:  InRelease                                                    
Ign file:  InRelease                                                     
Get:1 file:  Release.gpg [198 B]                                               
Get:2 file:  Release.gpg [181 B]                                               
Get:3 file:  Release.gpg [181 B]                                               
Get:4 file:  Release [196 B]                                                   
Get:5 file:  Release [191 B]                                                   
Get:6 file:  Release [195 B]                                                   
Ign file:  Translation-en_US                                                   
Ign file:  Translation-en                                                      
Ign file:  Translation-en_US                                                   
Ign file:  Translation-en                                                      
Ign file:  Translation-en_US                                                   
Ign file:  Translation-en                                                      
Ign http://us.archive.ubuntu.com trusty InRelease                              
Hit http://us.archive.ubuntu.com trusty-updates InRelease                      
Ign http://extras.ubuntu.com trusty InRelease                                  
Hit http://security.ubuntu.com trusty-security InRelease                       
Ign http://archive.canonical.com trusty InRelease                              
Hit http://us.archive.ubuntu.com trusty-backports InRelease                    
Hit http://us.archive.ubuntu.com trusty Release.gpg                            
Hit http://extras.ubuntu.com trusty Release.gpg                                
Hit http://archive.canonical.com trusty Release.gpg                            
Hit http://security.ubuntu.com trusty-security/main amd64 Packages   
Hit http://us.archive.ubuntu.com trusty-updates/main amd64 Packages            
Hit http://extras.ubuntu.com trusty Release                                    
Hit http://archive.canonical.com trusty Release                                
Hit http://us.archive.ubuntu.com trusty-updates/restricted amd64 Packages      
Hit http://security.ubuntu.com trusty-security/restricted amd64 Packages       
Hit http://us.archive.ubuntu.com trusty-updates/universe amd64 Packages        
Hit http://extras.ubuntu.com trusty/main Sources                               
Hit http://security.ubuntu.com trusty-security/universe amd64 Packages         
Hit http://archive.canonical.com trusty/partner Sources                        
Hit http://us.archive.ubuntu.com trusty-updates/multiverse amd64 Packages      
Hit http://extras.ubuntu.com trusty/main amd64 Packages                        
Hit http://security.ubuntu.com trusty-security/multiverse amd64 Packages       
Hit http://archive.canonical.com trusty/partner amd64 Packages                 
Hit http://archive.canonical.com trusty/partner armhf Packages                 
Hit http://extras.ubuntu.com trusty/main i386 Packages                         
Hit http://archive.canonical.com trusty/partner i386 Packages                  
Hit http://us.archive.ubuntu.com trusty-updates/main i386 Packages             
Hit http://us.archive.ubuntu.com trusty-updates/restricted i386 Packages       
Hit http://us.archive.ubuntu.com trusty-updates/universe i386 Packages         
Hit http://us.archive.ubuntu.com trusty-updates/multiverse i386 Packages       
Hit http://us.archive.ubuntu.com trusty-updates/main Translation-en            
Hit http://us.archive.ubuntu.com trusty-updates/multiverse Translation-en      
Hit http://security.ubuntu.com trusty-security/main i386 Packages              
Ign http://archive.canonical.com trusty/partner Translation-en                 
Hit http://us.archive.ubuntu.com trusty-updates/restricted Translation-en      
Hit http://security.ubuntu.com trusty-security/restricted i386 Packages        
Hit http://us.archive.ubuntu.com trusty-updates/universe Translation-en        
Hit http://us.archive.ubuntu.com trusty-backports/main amd64 Packages          
Hit http://security.ubuntu.com trusty-security/universe i386 Packages          
Hit http://us.archive.ubuntu.com trusty-backports/restricted amd64 Packages    
Hit http://us.archive.ubuntu.com trusty-backports/universe amd64 Packages      
Hit http://security.ubuntu.com trusty-security/multiverse i386 Packages        
Err http://extras.ubuntu.com trusty/main armhf Packages                        
  404  Not Found [IP: 91.189.92.152 80]
Hit http://us.archive.ubuntu.com trusty-backports/multiverse amd64 Packages
Hit http://security.ubuntu.com trusty-security/main Translation-en             
Hit http://security.ubuntu.com trusty-security/multiverse Translation-en       
Hit http://security.ubuntu.com trusty-security/restricted Translation-en       
Hit http://us.archive.ubuntu.com trusty-backports/main i386 Packages           
Hit http://us.archive.ubuntu.com trusty-backports/restricted i386 Packages     
Hit http://security.ubuntu.com trusty-security/universe Translation-en         
Hit http://us.archive.ubuntu.com trusty-backports/universe i386 Packages       
Hit http://us.archive.ubuntu.com trusty-backports/multiverse i386 Packages     
Ign http://extras.ubuntu.com trusty/main Translation-en_US                     
Hit http://us.archive.ubuntu.com trusty-backports/main Translation-en 
Ign http://extras.ubuntu.com trusty/main Translation-en                        
Hit http://us.archive.ubuntu.com trusty-backports/multiverse Translation-en
Hit http://us.archive.ubuntu.com trusty-backports/restricted Translation-en
Hit http://us.archive.ubuntu.com trusty-backports/universe Translation-en
Hit http://us.archive.ubuntu.com trusty Release                         
Err http://security.ubuntu.com trusty-security/main armhf Packages     
  404  Not Found [IP: 91.189.92.200 80]
Err http://security.ubuntu.com trusty-security/restricted armhf Packages
  404  Not Found [IP: 91.189.92.200 80]
Err http://security.ubuntu.com trusty-security/universe armhf Packages
  404  Not Found [IP: 91.189.92.200 80]
Err http://security.ubuntu.com trusty-security/multiverse armhf Packages
  404  Not Found [IP: 91.189.92.200 80]
Hit http://us.archive.ubuntu.com trusty/main Sources
Hit http://us.archive.ubuntu.com trusty/restricted Sources
Hit http://us.archive.ubuntu.com trusty/universe Sources
Hit http://us.archive.ubuntu.com trusty/multiverse Sources
Hit http://us.archive.ubuntu.com trusty/main amd64 Packages
Hit http://us.archive.ubuntu.com trusty/universe amd64 Packages
Hit http://us.archive.ubuntu.com trusty/restricted amd64 Packages
Hit http://us.archive.ubuntu.com trusty/multiverse amd64 Packages
Hit http://us.archive.ubuntu.com trusty/main i386 Packages
Hit http://us.archive.ubuntu.com trusty/universe i386 Packages                 
Hit http://us.archive.ubuntu.com trusty/restricted i386 Packages               
Hit http://us.archive.ubuntu.com trusty/multiverse i386 Packages               
Hit http://us.archive.ubuntu.com trusty/main Translation-en                    
Hit http://us.archive.ubuntu.com trusty/multiverse Translation-en              
Hit http://us.archive.ubuntu.com trusty/restricted Translation-en              
Hit http://us.archive.ubuntu.com trusty/universe Translation-en                
Err http://us.archive.ubuntu.com trusty-updates/main armhf Packages            
  404  Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com trusty-updates/restricted armhf Packages      
  404  Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com trusty-updates/universe armhf Packages        
  404  Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com trusty-updates/multiverse armhf Packages      
  404  Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com trusty-backports/main armhf Packages          
  404  Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com trusty-backports/restricted armhf Packages    
  404  Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com trusty-backports/universe armhf Packages      
  404  Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com trusty-backports/multiverse armhf Packages    
  404  Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com trusty/main armhf Packages                    
  404  Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com trusty/universe armhf Packages                
  404  Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com trusty/restricted armhf Packages              
  404  Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com trusty/multiverse armhf Packages              
  404  Not Found [IP: 91.189.91.24 80]
Ign http://us.archive.ubuntu.com trusty/main Translation-en_US                 
Ign http://us.archive.ubuntu.com trusty/multiverse Translation-en_US           
Ign http://us.archive.ubuntu.com trusty/restricted Translation-en_US           
Ign http://us.archive.ubuntu.com trusty/universe Translation-en_US             
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty-updates/main/binary-armhf/Packages  404  Not Found [IP: 91.189.91.24 80]

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

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

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

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

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

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

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

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

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

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

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

W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/trusty/main/binary-armhf/Packages  404  Not Found [IP: 91.189.92.152 80]

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

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

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

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty/multiverse/binary-armhf/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.

我的 /etc/apt/sources.list 包含:

deb http://archive.canonical.com/ubuntu trusty partner
deb-src http://archive.canonical.com/ubuntu trusty partner

deb http://extras.ubuntu.com/ubuntu trusty main
deb-src http://extras.ubuntu.com/ubuntu trusty main
# deb http://linux.dropbox.com/ubuntu trusty main
# deb-src http://linux.dropbox.com/ubuntu trusty main
deb http://us.archive.ubuntu.com/ubuntu/ trusty main universe restricted multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse #Added by software-properties
deb http://security.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://us.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse

对我来说,考虑到我在 x86 上,更新看起来好像正在尝试打击 ARM 源,这有点奇怪:

dh@ubuntu:/etc/apt$ arch
x86_64

这可能与我刚刚从这台 Ubuntu 机器上交叉编译并在 Jetson TK1(ARMHF)上安装了 JetPack 有关?这只是一个大胆的猜测。

确实,丢失的远程文件确实丢失了,但是,呃,我哪里出错了,我该如何恢复……?

谢谢您的任何建议!

答案1

您的系统已将 armhf 架构作为外部架构添加到其中。

dpkg --remove-architecture armhf

应该可以解决问题。之后执行“apt-get update”,问题应该就消失了。

相关内容