apt-get 中出现“发生了一些邪恶的事情”错误

apt-get 中出现“发生了一些邪恶的事情”错误

每次我尝试通过终端安装时,都会出现此信息:“我无法安装或更新,我在这里找不到可行的答案。这是我的 apt-get 更新结果:

点击 http://ppa.launchpad.net raring Release.gpg                                
点击 http://deb.opera.com stable Release.gpg                                    
点击 http://ppa.launchpad.net raring Release.gpg                                
点击 http://deb.opera.com 稳定版本                                        
点击 http://ppa.launchpad.net raring Release                                    
点击 http://deb.opera.com stable/non-free i386 软件包                         
点击 http://ppa.launchpad.net raring Release                                    
点击 http://ppa.launchpad.net raring/main i386 Packages                         
点击 http://ppa.launchpad.net raring/main i386 Packages                         
Ign http://deb.opera.com 稳定/非免费 Translation-en_US                     
Ign http://deb.opera.com stable/non-free 翻译-en                        
Ign http://ppa.launchpad.net raring/main 翻译-en_US                     
Ign http://ppa.launchpad.net raring/main 翻译-en                        
Ign http://ppa.launchpad.net raring/main 翻译-en_US                     
Ign http://ppa.launchpad.net raring/main 翻译-en                        
呃 http://archive.ubuntu.com raring Release.gpg                               
  解析‘archive.ubuntu.com:http’时发生异常(-11 - 系统错误)
呃 http://extras.ubuntu.com raring Release.gpg                                
  解析‘extras.ubuntu.com:http’时发生异常(-11 - 系统错误)
错误 http://dl.google.com 稳定版本.gpg                                    
  解析‘dl.google.com:http’时发生异常(-11 - 系统错误)
Ign https://private-ppa.launchpad.net 量子Release.gpg           
错误 http://archive.ubuntu.com raring-updates Release.gpg                       
  解析‘archive.ubuntu.com:http’时发生异常(-11 - 系统错误)
获取:1 http://archive.ubuntu.com raring-security Release.gpg [933 B]            
获取:2 http://archive.ubuntu.com raring-proposed Release.gpg [933 B]            
获取:3 http://archive.ubuntu.com raring-backports Release.gpg [933 B]           
点击 http://archive.ubuntu.com raring Release                                   
获取:4 http://archive.ubuntu.com raring-updates 发布 [40.8 kB]    
获取:5 http://archive.ubuntu.com raring-security 发布 [40.8 kB]              
Ign http://extras.ubuntu.com raring 发布                                    
Ign http://dl.google.com 稳定版本                                        
Ign https://private-ppa.launchpad.net 量子发布                
获取:6 http://archive.ubuntu.com raring-proposed Release [40.8 kB]              
点击 http://archive.ubuntu.com raring-backports Release                         
Ign http://archive.ubuntu.com raring/main 来源/DiffIndex                    
Ign http://archive.ubuntu.com raring/restricted Sources/DiffIndex              
Ign http://archive.ubuntu.com raring/universe 来源/DiffIndex                
Ign http://archive.ubuntu.com raring/multiverse 来源/DiffIndex              
Ign http://archive.ubuntu.com raring/main i386 软件包/DiffIndex   
Ign http://archive.ubuntu.com raring/restricted i386 软件包/DiffIndex
Ign http://archive.ubuntu.com raring/universe i386 软件包/DiffIndex          
Ign http://archive.ubuntu.com raring/multiverse i386 软件包/DiffIndex        
点击 http://archive.ubuntu.com raring/main 翻译-en                       
点击 http://archive.ubuntu.com raring/multiverse 翻译-en                 
点击 http://archive.ubuntu.com raring/restricted Translation-en                 
Ign http://dl.google.com stable/main i386 软件包/DiffIndex                   
点击 http://archive.ubuntu.com raring/universe 翻译-en                   
Ign http://archive.ubuntu.com raring-updates/main Sources/DiffIndex            
忽略 http://archive.ubuntu.com raring-updates/restricted Sources/DiffIndex      
Ign http://archive.ubuntu.com raring-updates/universe 来源/DiffIndex        
Ign https://private-ppa.launchpad.net quantal/main i386 Packages/DiffIndex     
Ign http://archive.ubuntu.com raring-updates/multiverse 来源/DiffIndex      
Ign http://archive.ubuntu.com raring-updates/main i386 软件包/DiffIndex      
点击 http://dl.google.com stable/main i386 Packages                             
Ign http://archive.ubuntu.com raring-updates/restricted i386 软件包/DiffIndex
Ign http://archive.ubuntu.com raring-updates/universe i386 软件包/DiffIndex  
Ign http://archive.ubuntu.com raring-updates/multiverse i386 软件包/DiffIndex
点击 http://archive.ubuntu.com raring-updates/main Translation-en               
点击 http://archive.ubuntu.com raring-updates/multiverse Translation-en         
点击 http://archive.ubuntu.com raring-updates/restricted Translation-en         
点击 http://archive.ubuntu.com raring-updates/universe Translation-en           
获取:7 http://archive.ubuntu.com raring-security/main 源 [24.7 kB]         
获取:8 http://archive.ubuntu.com raring-security/restricted 源 [14 B]      
获取:9 http://archive.ubuntu.com raring-security/universe 来源 [4,802 B]     
获取:10 http://archive.ubuntu.com raring-security/multiverse 来源 [690 B]    
点击 https://private-ppa.launchpad.net quantal/main i386 Packages               
Ign http://dl.google.com stable/main Translation-en_US                         
获取:11 http://archive.ubuntu.com raring-security/main i386 软件包 [67.9 kB]  
Ign http://dl.google.com stable/main 翻译-en                            
获取:12 http://archive.ubuntu.com raring-security/restricted i386 软件包 [14 B]
获取:13 http://archive.ubuntu.com raring-security/universe i386 软件包 [19.2 kB]
获取:14 http://archive.ubuntu.com raring-security/multiverse i386 软件包 [1,403 B]
点击 http://archive.ubuntu.com raring-security/main 翻译-en              
Ign http://extras.ubuntu.com raring/main Sources/DiffIndex                     
点击 http://archive.ubuntu.com raring-security/multiverse 翻译-en        
点击 http://archive.ubuntu.com raring-security/restricted Translation-en        
点击 http://archive.ubuntu.com raring-security/universe 翻译-en          
获取:15 http://archive.ubuntu.com raring-proposed/universe i386 软件包 [18.0 kB]
获取:16 http://archive.ubuntu.com raring-proposed/main i386 软件包 [29.9 kB]  
获取:17 http://archive.ubuntu.com raring-proposed/multiverse i386 软件包 [14 B]
获取:18 http://archive.ubuntu.com raring-proposed/restricted i386 软件包 [14 B]
点击 http://archive.ubuntu.com raring-proposed/main Translation-en              
点击 http://archive.ubuntu.com raring-proposed/multiverse Translation-en        
点击 http://archive.ubuntu.com raring-proposed/restricted Translation-en        
点击 http://archive.ubuntu.com raring-proposed/universe Translation-en          
点击 http://archive.ubuntu.com raring-backports/multiverse i386 软件包        
点击 http://archive.ubuntu.com raring-backports/main i386 Packages              
点击 http://archive.ubuntu.com raring-backports/restricted i386 软件包        
点击 http://archive.ubuntu.com raring-backports/universe i386 软件包          
点击 http://archive.ubuntu.com raring-backports/main Translation-en             
Ign https://private-ppa.launchpad.net quantal/main Translation-en_US           
点击 http://archive.ubuntu.com raring-backports/multiverse Translation-en       
点击 http://archive.ubuntu.com raring-backports/restricted Translation-en       
点击 http://archive.ubuntu.com raring-backports/universe Translation-en         
点击 http://archive.ubuntu.com raring/main 来源                              
Ign https://private-ppa.launchpad.net quantal/main 翻译-en              
点击 http://archive.ubuntu.com raring/restricted 来源                        
点击 http://archive.ubuntu.com raring/universe 来源                          
点击 http://archive.ubuntu.com raring/multiverse 来源                        
点击 http://archive.ubuntu.com raring/main i386 Packages                        
点击 http://archive.ubuntu.com raring/restricted i386 软件包
点击 http://archive.ubuntu.com raring/universe i386 软件包
点击 http://archive.ubuntu.com raring/multiverse i386 软件包
获取:19 http://archive.ubuntu.com raring-updates/main 源 [37.0 kB]
获取:20 http://archive.ubuntu.com raring-updates/restricted 源 [14 B]
获取:21 http://archive.ubuntu.com raring-updates/universe 源 [49.8 kB]     
Ign http://extras.ubuntu.com raring/main i386 包/DiffIndex               
获取:22 http://archive.ubuntu.com raring-updates/multiverse 来源 [690 B]     
获取:23 http://archive.ubuntu.com raring-updates/main i386 软件包 [93.5 kB]   
获取:24 http://archive.ubuntu.com raring-updates/restricted i386 软件包 [14 B]
获取:25 http://archive.ubuntu.com raring-updates/universe i386 软件包 [94.2 kB]
获取:26 http://archive.ubuntu.com raring-updates/multiverse i386 软件包 [1,403 B]
Ign http://archive.ubuntu.com raring/main 翻译-en_US                    
Ign http://archive.ubuntu.com raring/multiverse 翻译-en_US
Ign http://archive.ubuntu.com raring/restricted Translation-en_US
Ign http://archive.ubuntu.com raring/universe 翻译-en_US
Ign http://archive.ubuntu.com raring-updates/main Translation-en_US
Ign http://archive.ubuntu.com raring-updates/multiverse 翻译-en_US
Ign http://archive.ubuntu.com raring-updates/restricted Translation-en_US
Ign http://archive.ubuntu.com raring-updates/universe 翻译-en_US
Ign http://archive.ubuntu.com raring-security/main Translation-en_US
Ign http://archive.ubuntu.com raring-security/multiverse 翻译-en_US
Ign http://archive.ubuntu.com raring-security/restricted Translation-en_US
Ign http://archive.ubuntu.com raring-security/universe 翻译-en_US
Ign http://archive.ubuntu.com raring-proposed/main Translation-en_US
Ign http://archive.ubuntu.com raring-proposed/multiverse Translation-en_US
Ign http://archive.ubuntu.com raring-proposed/restricted Translation-en_US
Ign http://archive.ubuntu.com raring-proposed/universe 翻译-en_US
Ign http://archive.ubuntu.com raring-backports/main Translation-en_US
Ign http://archive.ubuntu.com raring-backports/multiverse 翻译-en_US
Ign http://archive.ubuntu.com raring-backports/restricted Translation-en_US
Ign http://archive.ubuntu.com raring-backports/universe 翻译-en_US
呃 http://extras.ubuntu.com raring/main Translation-en_US
  解析‘extras.ubuntu.com:http’时发生异常(-11 - 系统错误)
呃 http://extras.ubuntu.com raring/main 翻译-en
  解析‘extras.ubuntu.com:http’时发生异常(-11 - 系统错误)
呃 http://extras.ubuntu.com raring/main 来源
  解析‘extras.ubuntu.com:http’时发生异常(-11 - 系统错误)
错误 http://extras.ubuntu.com raring/main i386 软件包
  解析‘extras.ubuntu.com:http’时发生异常(-11 - 系统错误)
8 分 0 秒内获取 568 kB (1,181 B/s)
W:无法获取 http://archive.ubuntu.com/ubuntu/dists/raring/Release.gpg 解析‘archive.ubuntu.com:http’时发生异常(-11 - 系统错误)

W:无法获取 http://archive.ubuntu.com/ubuntu/dists/raring-updates/Release.gpg 解析‘archive.ubuntu.com:http’时发生了一些异常(-11 - 系统错误)

W:无法获取 http://extras.ubuntu.com/ubuntu/dists/raring/Release.gpg 解析‘extras.ubuntu.com:http’时发生了一些异常(-11 - 系统错误)

W:无法获取 http://dl.google.com/linux/chrome/deb/dists/stable/Release.gpg 解析‘dl.google.com:http’时发生异常(-11 - 系统错误)

W:无法获取 http://extras.ubuntu.com/ubuntu/dists/raring/main/i18n/Translation-en_US 解析‘extras.ubuntu.com:http’时发生了一些异常(-11 - 系统错误)

W:无法获取 http://extras.ubuntu.com/ubuntu/dists/raring/main/i18n/Translation-en 解析‘extras.ubuntu.com:http’时发生了一些异常(-11 - 系统错误)

W:无法获取 http://extras.ubuntu.com/ubuntu/dists/raring/main/source/Sources 解析‘extras.ubuntu.com:http’时发生了一些异常(-11 - 系统错误)

W:无法获取 http://extras.ubuntu.com/ubuntu/dists/raring/main/binary-i386/Packages 解析‘extras.ubuntu.com:http’时发生了一些异常(-11 - 系统错误)

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

答案1

关闭所有与安装软件有关的程序/窗口,例如 Synaptic、软件中心和终端。

现在您应该删除锁定的文件:

您可以使用以下方式删除锁定文件

sudo rm /var/lib/apt/lists/lock

您可能还需要删除缓存目录中的锁定文件

sudo rm /var/cache/apt/archives/lock 

经过:这个答案

现在你应该打开一个终端并运行:

 sudo apt-get update --fix-missing

现在您可以再次安装您想要的所有内容。

解决方案参考自

答案2

您可能通过代理连接到互联网,因此您应该apt-get通过执行以下操作来设置代理:

  • 在中创建一个文件夹/etc/apt/apt.conf.d/

    $ sudo leafpad /etc/apt/apt.conf.d/95proxies
    
  • 在打开的文件中粘贴以下内容:

    Acquire::http::proxy "http://yourProxyIP:8080/";
    Acquire::ftp::proxy "ftp://yourProxyIP:8080/";
    Acquire::https::proxy "https://yourProxyIP:8080/";
    

确保使用正确的代理 IP 更改 yourProxyIP。

Ctrl按“+”保存文件S 然后运行:

sudo apt-get update.

看:如何在 Xubuntu、Lubuntu 或 Ubuntu Studio 中设置系统范围的代理服务器?

答案3

类型sudo apt-get update --fix-missing

答案4

如果您有代理,那么此链接有一些答案。

https://help.ubuntu.com/community/AptGet/Howto

看着那(这设置 apt-get 以使用 http 代理网页内的部分。

相关内容