无法下载存储库信息。请检查您的互联网连接。报告了随机不良存储库

无法下载存储库信息。请检查您的互联网连接。报告了随机不良存储库

最近,我的系统更新管理器在下载存储库信息时没有任何错误。以前我遇到这个问题时,总是存储库损坏。不过,现在对我来说似乎损坏的似乎是 security.ubuntu 和/或 archive.ubuntu 和/或任何其他存储库。这迫使更新管理器继续通知我:“软件包信息在 17 天前更新”。我尝试了许多其他类似问题中建议的多种方法,但它们似乎都指向一个坏的存储库。

使用 sudo apt-get update 会出现同样的错误,尽管出现问题的存储库数量不一致。

我甚至尝试取消选中软件管理器中的所有其他软件,但仍然出现此错误。我还尝试了多个不同的存储库服务器,包括主服务器和推荐的“最佳”服务器。我不太确定是什么导致了这个问题,任何帮助都会有用。以下是我的一些输出:

sudo apt-get update
Hit http://repo.steampowered.com precise Release.gpg
Hit http://repo.steampowered.com precise Release                                            
Hit http://repo.steampowered.com precise/steam amd64 Packages                               
Hit http://repo.steampowered.com precise/steam i386 Packages                                
Ign http://repo.steampowered.com precise/steam TranslationIndex                             
Ign http://repo.steampowered.com precise/steam Translation-en_CA                            
Ign http://repo.steampowered.com precise/steam Translation-en                               
Hit http://extras.ubuntu.com precise Release.gpg                                            
Hit http://extras.ubuntu.com precise Release                                                
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://extras.ubuntu.com precise/main Translation-en_CA                                 
Ign http://extras.ubuntu.com precise/main Translation-en                                    
Hit http://archive.canonical.com precise Release.gpg                                        
Hit http://archive.canonical.com precise Release                                            
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            
Ign http://archive.canonical.com precise/partner Translation-en_CA                          
Ign http://archive.canonical.com precise/partner Translation-en                             
Get:1 http://security.ubuntu.com precise-security Release.gpg [198 B]        
Hit http://security.ubuntu.com precise-security Release                      
Hit http://security.ubuntu.com precise-security/main 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/restricted amd64 Packages
Hit http://security.ubuntu.com precise-security/main i386 Packages
Hit http://security.ubuntu.com precise-security/universe i386 Packages
Hit http://security.ubuntu.com precise-security/multiverse i386 Packages
Hit http://security.ubuntu.com precise-security/restricted 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://security.ubuntu.com precise-security/universe TranslationIndex
Hit http://security.ubuntu.com precise-security/main Translation-en
Hit http://security.ubuntu.com precise-security/multiverse Translation-en
Hit http://security.ubuntu.com precise-security/restricted Translation-en
Hit http://security.ubuntu.com precise-security/universe Translation-en
Err http://ca.archive.ubuntu.com precise Release.gpg                                        
  Something wicked happened resolving 'ca.archive.ubuntu.com:http' (-5 - No address associated with hostname)
Hit http://ca.archive.ubuntu.com precise-updates Release.gpg                                
Hit http://ca.archive.ubuntu.com precise Release                                            
Hit http://ca.archive.ubuntu.com precise-updates Release                                    
Ign http://ca.archive.ubuntu.com precise/main amd64 Packages/DiffIndex                      
Ign http://ca.archive.ubuntu.com precise/universe amd64 Packages/DiffIndex                  
Ign http://ca.archive.ubuntu.com precise/multiverse amd64 Packages/DiffIndex                
Ign http://ca.archive.ubuntu.com precise/restricted amd64 Packages/DiffIndex                
Ign http://ca.archive.ubuntu.com precise/main i386 Packages/DiffIndex                       
Ign http://ca.archive.ubuntu.com precise/universe i386 Packages/DiffIndex                   
Ign http://ca.archive.ubuntu.com precise/multiverse i386 Packages/DiffIndex                 
Ign http://ca.archive.ubuntu.com precise/restricted i386 Packages/DiffIndex                 
Hit http://ca.archive.ubuntu.com precise/main TranslationIndex                              
Hit http://ca.archive.ubuntu.com precise/multiverse TranslationIndex                        
Hit http://ca.archive.ubuntu.com precise/restricted TranslationIndex                        
Hit http://ca.archive.ubuntu.com precise/universe TranslationIndex                          
Hit http://ca.archive.ubuntu.com precise-updates/main amd64 Packages                        
Hit http://ca.archive.ubuntu.com precise-updates/universe amd64 Packages                    
Hit http://ca.archive.ubuntu.com precise-updates/multiverse amd64 Packages                  
Hit http://ca.archive.ubuntu.com precise-updates/restricted amd64 Packages                  
Hit http://ca.archive.ubuntu.com precise-updates/main i386 Packages                         
Hit http://ca.archive.ubuntu.com precise-updates/universe i386 Packages                     
Hit http://ca.archive.ubuntu.com precise-updates/multiverse i386 Packages                   
Hit http://ca.archive.ubuntu.com precise-updates/restricted i386 Packages                   
Hit http://ca.archive.ubuntu.com precise-updates/main TranslationIndex                      
Hit http://ca.archive.ubuntu.com precise-updates/multiverse TranslationIndex                
Hit http://ca.archive.ubuntu.com precise-updates/restricted TranslationIndex                
Hit http://ca.archive.ubuntu.com precise-updates/universe TranslationIndex                  
Hit http://ca.archive.ubuntu.com precise/main amd64 Packages                                
Hit http://ca.archive.ubuntu.com precise/universe amd64 Packages                            
Hit http://ca.archive.ubuntu.com precise/multiverse amd64 Packages                          
Hit http://ca.archive.ubuntu.com precise/restricted amd64 Packages                          
Hit http://ca.archive.ubuntu.com precise/main i386 Packages                                 
Hit http://ca.archive.ubuntu.com precise/universe i386 Packages                             
Hit http://ca.archive.ubuntu.com precise/multiverse i386 Packages                           
Hit http://ca.archive.ubuntu.com precise/restricted i386 Packages                           
Hit http://ca.archive.ubuntu.com precise/main Translation-en_CA                             
Hit http://ca.archive.ubuntu.com precise/main Translation-en                                
Hit http://ca.archive.ubuntu.com precise/multiverse Translation-en                          
Hit http://ca.archive.ubuntu.com precise/restricted Translation-en                          
Hit http://ca.archive.ubuntu.com precise/universe Translation-en_CA                         
Hit http://ca.archive.ubuntu.com precise/universe Translation-en                            
Hit http://ca.archive.ubuntu.com precise-updates/main Translation-en_CA                     
Hit http://ca.archive.ubuntu.com precise-updates/main Translation-en                        
Hit http://ca.archive.ubuntu.com precise-updates/multiverse Translation-en                  
Hit http://ca.archive.ubuntu.com precise-updates/restricted Translation-en                  
Hit http://ca.archive.ubuntu.com precise-updates/universe Translation-en_CA                 
Hit http://ca.archive.ubuntu.com precise-updates/universe Translation-en                    
Fetched 198 B in 20s (9 B/s)                                                                
W: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/dists/precise/Release.gpg  Something wicked happened resolving 'ca.archive.ubuntu.com:http' (-5 - No address associated with hostname)

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

如果我再次运行相同的命令,我会得到一个不同的坏存储库,例如:

sudo apt-get update
Get:1 http://ca.archive.ubuntu.com precise Release.gpg [198 B]
Get:2 http://ca.archive.ubuntu.com precise-updates Release.gpg [198 B]                      
Hit http://ca.archive.ubuntu.com precise Release                                            
Get:3 http://ca.archive.ubuntu.com precise-updates Release [49.6 kB]                        
Hit http://ca.archive.ubuntu.com precise/main amd64 Packages                                
Hit http://ca.archive.ubuntu.com precise/universe amd64 Packages                            
Hit http://ca.archive.ubuntu.com precise/multiverse amd64 Packages                          
Hit http://ca.archive.ubuntu.com precise/restricted amd64 Packages                          
Hit http://ca.archive.ubuntu.com precise/main i386 Packages                                 
Hit http://ca.archive.ubuntu.com precise/universe i386 Packages                             
Hit http://ca.archive.ubuntu.com precise/multiverse i386 Packages                           
Hit http://ca.archive.ubuntu.com precise/restricted i386 Packages                           
Hit http://ca.archive.ubuntu.com precise/main TranslationIndex                              
Hit http://ca.archive.ubuntu.com precise/multiverse TranslationIndex                        
Hit http://ca.archive.ubuntu.com precise/restricted TranslationIndex                        
Hit http://ca.archive.ubuntu.com precise/universe TranslationIndex                          
Get:4 http://ca.archive.ubuntu.com precise-updates/main amd64 Packages [663 kB]             
Get:5 http://ca.archive.ubuntu.com precise-updates/universe amd64 Packages [210 kB]         
Get:6 http://ca.archive.ubuntu.com precise-updates/multiverse amd64 Packages [13.6 kB]      
Get:7 http://ca.archive.ubuntu.com precise-updates/restricted amd64 Packages [10.1 kB]      
Get:8 http://ca.archive.ubuntu.com precise-updates/main i386 Packages [683 kB]              
Get:9 http://ca.archive.ubuntu.com precise-updates/universe i386 Packages [214 kB]          
Get:10 http://ca.archive.ubuntu.com precise-updates/multiverse i386 Packages [13.8 kB]      
Get:11 http://ca.archive.ubuntu.com precise-updates/restricted i386 Packages [10.0 kB]      
Hit http://ca.archive.ubuntu.com precise-updates/main TranslationIndex                      
Hit http://ca.archive.ubuntu.com precise-updates/multiverse TranslationIndex                
Hit http://ca.archive.ubuntu.com precise-updates/restricted TranslationIndex                
Hit http://ca.archive.ubuntu.com precise-updates/universe TranslationIndex                  
Hit http://ca.archive.ubuntu.com precise/main Translation-en_CA                             
Hit http://ca.archive.ubuntu.com precise/main Translation-en                                
Hit http://ca.archive.ubuntu.com precise/multiverse Translation-en                          
Hit http://ca.archive.ubuntu.com precise/restricted Translation-en                          
Hit http://ca.archive.ubuntu.com precise/universe Translation-en_CA                         
Hit http://ca.archive.ubuntu.com precise/universe Translation-en                            
Hit http://ca.archive.ubuntu.com precise-updates/main Translation-en_CA                     
Hit http://ca.archive.ubuntu.com precise-updates/main Translation-en                        
Hit http://ca.archive.ubuntu.com precise-updates/multiverse Translation-en                  
Hit http://ca.archive.ubuntu.com precise-updates/restricted Translation-en                  
Hit http://ca.archive.ubuntu.com precise-updates/universe Translation-en_CA                 
Hit http://ca.archive.ubuntu.com precise-updates/universe Translation-en                    
Hit http://archive.canonical.com precise Release.gpg                                        
Hit http://archive.canonical.com precise Release                                            
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                           
Ign http://archive.canonical.com precise/partner Translation-en_CA                          
Ign http://archive.canonical.com precise/partner Translation-en                             
Hit http://extras.ubuntu.com precise Release.gpg                                            
Hit http://extras.ubuntu.com precise Release                                                
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://extras.ubuntu.com precise/main Translation-en_CA                                 
Ign http://extras.ubuntu.com precise/main Translation-en                                    
Get:12 http://security.ubuntu.com precise-security Release.gpg [198 B]                      
Get:13 http://security.ubuntu.com precise-security Release [49.6 kB]          
Get:14 http://security.ubuntu.com precise-security/main amd64 Packages [296 kB]
Get:15 http://security.ubuntu.com precise-security/universe amd64 Packages [79.8 kB]
Get:16 http://security.ubuntu.com precise-security/multiverse amd64 Packages [2,186 B]      
Get:17 http://security.ubuntu.com precise-security/restricted amd64 Packages [4,627 B]      
Get:18 http://security.ubuntu.com precise-security/main i386 Packages [311 kB]              
Get:19 http://security.ubuntu.com precise-security/universe i386 Packages [82.5 kB]         
Get:20 http://security.ubuntu.com precise-security/multiverse i386 Packages [2,371 B]       
Get:21 http://security.ubuntu.com precise-security/restricted i386 Packages [4,620 B]       
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://security.ubuntu.com precise-security/universe TranslationIndex               
Hit http://security.ubuntu.com precise-security/main Translation-en                     
Hit http://security.ubuntu.com precise-security/multiverse Translation-en               
Hit http://security.ubuntu.com precise-security/restricted Translation-en
Hit http://security.ubuntu.com precise-security/universe Translation-en
Err http://repo.steampowered.com precise Release.gpg                                        
  Something wicked happened resolving 'repo.steampowered.com:http' (-5 - No address associated with hostname)
Hit http://repo.steampowered.com precise Release                                            
Ign http://repo.steampowered.com precise/steam amd64 Packages/DiffIndex                     
Ign http://repo.steampowered.com precise/steam i386 Packages/DiffIndex                      
Ign http://repo.steampowered.com precise/steam TranslationIndex                             
Hit http://repo.steampowered.com precise/steam amd64 Packages                               
Hit http://repo.steampowered.com precise/steam i386 Packages                                
Ign http://repo.steampowered.com precise/steam Translation-en_CA                            
Ign http://repo.steampowered.com precise/steam Translation-en                               
Fetched 2,701 kB in 21s (124 kB/s)                                                          
W: Failed to fetch http://repo.steampowered.com/steam/dists/precise/Release.gpg  Something wicked happened resolving 'repo.steampowered.com:http' (-5 - No address associated with hostname)

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

关于我需要开始研究什么问题,有什么建议吗?

答案1

我想到了!

  1. 从此处的链接下载文件:“http://packages.ubuntu.com/precise/amd64/apt-transport-https/download

  2. 单击网页上标有“security.ubuntu.com/ubuntu”的链接(应该下载文件)

  3. 然后,使用“GDebi 包安装程序”安装该文件。

答案2

从表面上看,你的 repo 很糟糕。

我跟着它到了这个网站:http://repo.steampowered.com/steam/dists/precise/其中包含一个有 64 位版本和 32 位版本的 steam 文件夹。

要修复此问题,您可以从源列表中删除 repo 或查看此文件夹内的版本是否有效。

位于:/etc/apt/sources.list 但请小心。这可能会损坏您的系统。您必须使用 gedit/kate/vi 在 root 中编辑此文件。

不久前我添加了一个蒸汽朋克主题,但他们没有 64 位软件包,因此我遇到了这些错误。因此,我删除了包含有问题的 repo 的单个文件。

相关内容