为什么我在某些存档服务器上的 .canonical.com 上收到 404 错误?

Kev*_*sch 3 updates package-management apt

很长一段时间以来,我一直遇到软件包损坏的问题,并且在我尝试安装 rvm 时给我带来了麻烦。经过一番搜索,我打开了软件源管理器“gksu software-properties-gtk”并取消选中“其他软件”中的archive.canonical.com存储库,我不再有任何损坏的包。这些是重要的存储库吗?我应该担心我的装置健康吗?我是一个 Ubuntu 菜鸟,所以这让我很担心。

重要的是,这里是“sudo apt-get update”错误:

 sudo apt-get update

Hit http://dl.google.com stable Release.gpg
Hit http://dl.google.com stable Release                                                                                
Hit http://dl.google.com stable/main amd64 Packages                                                                    
Hit http://security.ubuntu.com precise-security Release.gpg                                                            
Hit http://us.archive.ubuntu.com precise Release.gpg                                                                   
Hit http://us.archive.ubuntu.com precise-updates Release.gpg                                                           
Hit http://us.archive.ubuntu.com precise-backports Release.gpg                                                         
Hit http://dl.google.com stable/main i386 Packages                                                                     
Ign http://dl.google.com stable/main TranslationIndex                                                                  
Hit http://security.ubuntu.com precise-security Release                                                          
Hit http://us.archive.ubuntu.com precise Release                                                                       
Hit http://extras.ubuntu.com precise Release.gpg                                                                       
Hit http://archive.canonical.com precise Release.gpg                                                                   
Ign http://archive.canonical.com [distro] Release.gpg                                                                  
Hit http://ppa.launchpad.net precise Release.gpg                                                                       
Hit http://us.archive.ubuntu.com precise-updates Release                                                         
Hit http://security.ubuntu.com precise-security/main Sources                                                           
Hit http://us.archive.ubuntu.com precise-backports Release                                                             
Hit http://us.archive.ubuntu.com precise/main Sources                                                                  
Hit http://us.archive.ubuntu.com precise/restricted Sources                                                            
Hit http://us.archive.ubuntu.com precise/universe Sources                                                              
Hit http://us.archive.ubuntu.com precise/multiverse Sources                                                            
Hit http://us.archive.ubuntu.com precise/main amd64 Packages                                                           
Hit http://security.ubuntu.com precise-security/restricted Sources                                                     
Hit http://security.ubuntu.com precise-security/universe Sources                                                       
Hit http://security.ubuntu.com precise-security/multiverse Sources                                                     
Hit http://security.ubuntu.com precise-security/main amd64 Packages                                                    
Hit http://security.ubuntu.com precise-security/restricted amd64 Packages                                              
Hit http://security.ubuntu.com precise-security/universe amd64 Packages                                                
Hit http://security.ubuntu.com precise-security/multiverse amd64 Packages                                              
Hit http://security.ubuntu.com precise-security/main i386 Packages                                                     
Hit http://security.ubuntu.com precise-security/restricted i386 Packages                                               
Hit http://security.ubuntu.com precise-security/universe i386 Packages                                                 
Hit http://extras.ubuntu.com precise Release                                                                           
Hit http://archive.canonical.com precise Release                                                                       
Hit http://ppa.launchpad.net precise Release                                                                           
Hit http://us.archive.ubuntu.com precise/restricted amd64 Packages                                                     
Hit http://us.archive.ubuntu.com precise/universe amd64 Packages                                                       
Hit http://us.archive.ubuntu.com precise/multiverse amd64 Packages                                                     
Hit http://us.archive.ubuntu.com precise/main i386 Packages                                                            
Hit http://us.archive.ubuntu.com precise/restricted i386 Packages                                                      
Hit http://us.archive.ubuntu.com precise/universe i386 Packages                                                        
Hit http://us.archive.ubuntu.com precise/multiverse i386 Packages                                                      
Hit http://us.archive.ubuntu.com precise/main TranslationIndex                                                         
Hit http://us.archive.ubuntu.com precise/multiverse TranslationIndex                                                   
Hit http://security.ubuntu.com precise-security/multiverse i386 Packages                                               
Hit http://security.ubuntu.com precise-security/main TranslationIndex                                                  
Hit http://security.ubuntu.com precise-security/multiverse TranslationIndex                                            
Hit http://security.ubuntu.com precise-security/restricted TranslationIndex                                            
Hit http://us.archive.ubuntu.com precise/restricted TranslationIndex                                                   
Hit http://security.ubuntu.com precise-security/universe TranslationIndex                                              
Hit http://us.archive.ubuntu.com precise/universe TranslationIndex                                                     
Hit http://us.archive.ubuntu.com precise-updates/main Sources                                                          
Hit http://us.archive.ubuntu.com precise-updates/restricted Sources                                              
Hit http://us.archive.ubuntu.com precise-updates/universe Sources                                                
Hit http://us.archive.ubuntu.com precise-updates/multiverse Sources                                                    
Ign http://archive.canonical.com [distro] Release                                                                      
Hit http://extras.ubuntu.com precise/main Sources                                                                
Hit http://ppa.launchpad.net precise/main Sources                                                                
Hit http://us.archive.ubuntu.com precise-updates/main amd64 Packages                                             
Hit http://us.archive.ubuntu.com precise-updates/restricted amd64 Packages                                       
Hit http://us.archive.ubuntu.com precise-updates/universe amd64 Packages                                               
Hit http://us.archive.ubuntu.com precise-updates/multiverse amd64 Packages                                             
Hit http://security.ubuntu.com precise-security/main Translation-en                                                    
Hit http://security.ubuntu.com precise-security/multiverse Translation-en                                              
Hit http://us.archive.ubuntu.com precise-updates/main i386 Packages                                                    
Hit http://us.archive.ubuntu.com precise-updates/restricted i386 Packages                                              
Hit http://us.archive.ubuntu.com precise-updates/universe i386 Packages                                          
Hit http://us.archive.ubuntu.com precise-updates/multiverse i386 Packages                                              
Hit http://us.archive.ubuntu.com precise-updates/main TranslationIndex                                                 
Ign http://dl.google.com stable/main Translation-en_US                                                                 
Hit http://security.ubuntu.com precise-security/restricted Translation-en                                        
Hit http://us.archive.ubuntu.com precise-updates/multiverse TranslationIndex                                           
Hit http://us.archive.ubuntu.com precise-updates/restricted TranslationIndex                                           
Hit http://us.archive.ubuntu.com precise-updates/universe TranslationIndex                                       
Hit http://us.archive.ubuntu.com precise-backports/restricted amd64 Packages                                     
Hit http://us.archive.ubuntu.com precise-backports/main amd64 Packages                                                 
Hit http://us.archive.ubuntu.com precise-backports/multiverse amd64 Packages                                           
Hit http://archive.canonical.com precise/partner Sources                                                               
Hit http://archive.canonical.com precise/partner amd64 Packages                                                        
Hit http://archive.canonical.com precise/partner i386 Packages                                                         
Ign http://archive.canonical.com precise/partner TranslationIndex                                                      
Hit http://extras.ubuntu.com precise/main amd64 Packages                                                         
Hit http://extras.ubuntu.com precise/main i386 Packages                                                                
Ign http://extras.ubuntu.com precise/main TranslationIndex                                                             
Ign http://dl.google.com stable/main Translation-en                                                                    
Hit http://ppa.launchpad.net precise/main amd64 Packages                                                         
Hit http://ppa.launchpad.net precise/main i386 Packages                                                          
Ign http://ppa.launchpad.net precise/main TranslationIndex                                                       
Hit http://security.ubuntu.com precise-security/universe Translation-en                                          
Hit http://us.archive.ubuntu.com precise-backports/universe amd64 Packages                 
Hit http://us.archive.ubuntu.com precise-backports/restricted i386 Packages                
Hit http://us.archive.ubuntu.com precise-backports/main i386 Packages
Hit http://us.archive.ubuntu.com precise-backports/multiverse i386 Packages                
Hit http://us.archive.ubuntu.com precise-backports/universe i386 Packages                  
Hit http://us.archive.ubuntu.com precise-backports/main TranslationIndex                   
Hit http://us.archive.ubuntu.com precise-backports/multiverse TranslationIndex             
Hit http://us.archive.ubuntu.com precise-backports/restricted TranslationIndex             
Hit http://us.archive.ubuntu.com precise-backports/universe TranslationIndex               
Hit http://us.archive.ubuntu.com precise/main Translation-en                               
Ign http://archive.canonical.com [distro]/partner TranslationIndex                         
Hit http://us.archive.ubuntu.com precise/multiverse Translation-en                         
Hit http://us.archive.ubuntu.com precise/restricted Translation-en                         
Hit http://us.archive.ubuntu.com precise/universe Translation-en                           
Hit http://us.archive.ubuntu.com precise-updates/main Translation-en                       
Hit http://us.archive.ubuntu.com precise-updates/multiverse Translation-en                 
Hit http://us.archive.ubuntu.com precise-updates/restricted Translation-en                 
Hit http://us.archive.ubuntu.com precise-updates/universe Translation-en                   
Hit http://us.archive.ubuntu.com precise-backports/main Translation-en                     
Hit http://us.archive.ubuntu.com precise-backports/multiverse Translation-en               
Hit http://us.archive.ubuntu.com precise-backports/restricted Translation-en               
Hit http://us.archive.ubuntu.com precise-backports/universe Translation-en
Ign http://extras.ubuntu.com precise/main Translation-en_US          
Ign http://ppa.launchpad.net precise/main Translation-en_US          
Ign http://extras.ubuntu.com precise/main Translation-en
Err http://archive.canonical.com [distro]/partner Sources
  404  Not Found [IP: 91.189.92.150 80]
Err http://archive.canonical.com [distro]/partner amd64 Packages
  404  Not Found [IP: 91.189.92.150 80]
Err http://archive.canonical.com [distro]/partner i386 Packages
  404  Not Found [IP: 91.189.92.150 80]
Ign http://ppa.launchpad.net precise/main Translation-en
Ign http://archive.canonical.com precise/partner Translation-en_US
Ign http://archive.canonical.com precise/partner Translation-en
Ign http://archive.canonical.com [distro]/partner Translation-en_US
Ign http://archive.canonical.com [distro]/partner Translation-en
W: Failed to fetch http://archive.canonical.com/dists/[distro]/partner/source/Sources  404  Not Found [IP: 91.189.92.150 80]

W: Failed to fetch http://archive.canonical.com/dists/[distro]/partner/binary-amd64/Packages  404  Not Found [IP: 91.189.92.150 80]

W: Failed to fetch http://archive.canonical.com/dists/[distro]/partner/binary-i386/Packages  404  Not Found [IP: 91.189.92.150 80]

E: Some index files failed to download. They have been ignored, or old ones used instead.
Run Code Online (Sandbox Code Playgroud)

Alv*_*var 5

Err http://archive.canonical.com [distro]/partner Sources
  404  Not Found [IP: 91.189.92.150 80]
Err http://archive.canonical.com [distro]/partner amd64 Packages
  404  Not Found [IP: 91.189.92.150 80]
Err http://archive.canonical.com [distro]/partner i386 Packages
  404  Not Found [IP: 91.189.92.150 80]
Run Code Online (Sandbox Code Playgroud)

如果您运行的是 12.04 [distro]precise则包含的行应替换为。

  1. 要编辑源列表,请先打开终端。
  2. /etc/apt/sources.list使用 like 进行编辑,gksu gedit /etc/apt/sources.list文件的 gedit 窗口将打开。
  3. 找到说deb http://archive.canonical.com [distro]/partner和的行deb-src http://archive.canonical.com [distro]/partner
  4. deb http://archive.canonical.com precise/partnerdeb-src http://archive.canonical.com precise/partner

这应该是六行,根据您的错误进行编辑。

命令来源