无法打开 Ubuntu 软件中心,无法修复软件包目录

无法打开 Ubuntu 软件中心,无法修复软件包目录

我刚刚升级到 11.10,但在安装过程中,adobe flash 包在最后出现了问题,安装刚刚结束。它说会尝试恢复,但没有,现在我可以正常启动到 11.10。但是,当我尝试打开 Ubuntu 软件中心时,我得到了这个对话框:

在此处输入图片描述

当我点击修复时,它会要求输入 root 密码,然后再次弹出此窗口。它会继续弹出,直到我关闭软件中心。我试过更新/升级我的存储库,我试过sudo apt-get install -f,我试过删除Adobe Flash 插件,但似乎没有什么帮助。

[编辑] 请求输出(sudo apt-get update && sudo apt-get upgrade):

Ign http://dl.google.com stable InRelease
Ign http://dl.google.com stable InRelease                                                                                                                                                                          
Get:1 http://dl.google.com stable Release.gpg [198 B]                                                                                                                                                              
Get:2 http://dl.google.com stable Release.gpg [198 B]                                                                                                                                                              
Ign http://ppa.launchpad.net oneiric InRelease                                                                                                                                
Ign http://ppa.launchpad.net oneiric InRelease                                                                                                   
Ign http://security.ubuntu.com oneiric-security InRelease                                                                                        
Ign http://archive.canonical.com oneiric InRelease                                                                                               
Get:3 http://dl.google.com stable Release [1,347 B]                                                                                              
Ign http://extras.ubuntu.com oneiric InRelease                                                                                                                                    
Get:4 http://dl.google.com stable Release [1,347 B]                                                                                                                                             
Hit http://ppa.launchpad.net oneiric Release.gpg                                                                                                                                  
Hit http://security.ubuntu.com oneiric-security Release.gpg                                                                                                               
Hit http://archive.canonical.com oneiric Release.gpg                                                                                                                   
Hit http://extras.ubuntu.com oneiric Release.gpg                                                                                                 
Get:5 http://dl.google.com stable/main amd64 Packages [1,207 B]                                                                                  
Hit http://ppa.launchpad.net oneiric Release.gpg                                                                                                                                              
Get:6 http://dl.google.com stable/main i386 Packages [1,199 B]                                                                                                         
Hit http://security.ubuntu.com oneiric-security Release                                                                                      
Hit http://archive.canonical.com oneiric Release                                                                                                               
Hit http://extras.ubuntu.com oneiric Release                                                                                            
Ign http://dl.google.com stable/main TranslationIndex                                                                                   
Get:7 http://dl.google.com stable/main amd64 Packages [764 B]                                                    
Hit http://ppa.launchpad.net oneiric Release                                                                                                                  
Get:8 http://dl.google.com stable/main i386 Packages [779 B]                                                                                                  
Hit http://security.ubuntu.com oneiric-security/main Sources                                                                                                  
Ign http://dl.google.com stable/main TranslationIndex                                                                                  
Hit http://archive.canonical.com oneiric/partner amd64 Packages                                                  
Hit http://extras.ubuntu.com oneiric/main Sources                                                                
Hit http://ppa.launchpad.net oneiric Release                                                                     
Hit http://security.ubuntu.com oneiric-security/restricted Sources                                                                      
Hit http://security.ubuntu.com oneiric-security/universe Sources                                                                       
Hit http://security.ubuntu.com oneiric-security/multiverse Sources                                               
Hit http://security.ubuntu.com oneiric-security/main amd64 Packages                                                                    
Hit http://security.ubuntu.com oneiric-security/restricted amd64 Packages                                                              
Hit http://archive.canonical.com oneiric/partner i386 Packages                                                                         
Ign http://archive.canonical.com oneiric/partner TranslationIndex                                                
Hit http://extras.ubuntu.com oneiric/main amd64 Packages                                                         
Hit http://extras.ubuntu.com oneiric/main i386 Packages                                                          
Hit http://ppa.launchpad.net oneiric/main Sources                                                                                      
Hit http://ppa.launchpad.net oneiric/main amd64 Packages                                                                               
Hit http://ppa.launchpad.net oneiric/main i386 Packages                                                          
Ign http://ppa.launchpad.net oneiric/main TranslationIndex                                                       
Hit http://security.ubuntu.com oneiric-security/universe amd64 Packages                                          
Hit http://security.ubuntu.com oneiric-security/multiverse amd64 Packages                                        
Hit http://security.ubuntu.com oneiric-security/main i386 Packages                                               
Hit http://security.ubuntu.com oneiric-security/restricted i386 Packages                                         
Hit http://security.ubuntu.com oneiric-security/universe i386 Packages                                           
Hit http://security.ubuntu.com oneiric-security/multiverse i386 Packages                                         
Ign http://security.ubuntu.com oneiric-security/main TranslationIndex                                            
Ign http://us.archive.ubuntu.com oneiric InRelease                                                               
Ign http://us.archive.ubuntu.com oneiric-updates InRelease                                                       
Ign http://extras.ubuntu.com oneiric/main TranslationIndex                                                       
Hit http://ppa.launchpad.net oneiric/main Sources                                          
Hit http://ppa.launchpad.net oneiric/main amd64 Packages                                   
Hit http://ppa.launchpad.net oneiric/main i386 Packages                                    
Ign http://ppa.launchpad.net oneiric/main TranslationIndex                                 
Ign http://security.ubuntu.com oneiric-security/multiverse TranslationIndex                
Ign http://security.ubuntu.com oneiric-security/restricted TranslationIndex                
Ign http://security.ubuntu.com oneiric-security/universe TranslationIndex                  
Hit http://us.archive.ubuntu.com oneiric Release.gpg                                       
Ign http://dl.google.com stable/main Translation-en_US                                                           
Hit http://us.archive.ubuntu.com oneiric-updates Release.gpg                                                     
Ign http://dl.google.com stable/main Translation-en                                                              
Ign http://archive.canonical.com oneiric/partner Translation-en_US                                               
Ign http://dl.google.com stable/main Translation-en_US                                                           
Ign http://dl.google.com stable/main Translation-en                                                              
Ign http://archive.canonical.com oneiric/partner Translation-en                                                  
Ign http://security.ubuntu.com oneiric-security/main Translation-en_US                                           
Ign http://security.ubuntu.com oneiric-security/main Translation-en                        
Ign http://extras.ubuntu.com oneiric/main Translation-en_US                                
Ign http://security.ubuntu.com oneiric-security/multiverse Translation-en_US               
Ign http://security.ubuntu.com oneiric-security/multiverse Translation-en
Ign http://security.ubuntu.com oneiric-security/restricted Translation-en_US
Ign http://security.ubuntu.com oneiric-security/restricted Translation-en
Ign http://security.ubuntu.com oneiric-security/universe Translation-en_US
Ign http://ppa.launchpad.net oneiric/main Translation-en_US                                
Ign http://extras.ubuntu.com oneiric/main Translation-en                                   
Hit http://us.archive.ubuntu.com oneiric Release                                           
Ign http://security.ubuntu.com oneiric-security/universe Translation-en                     
Ign http://ppa.launchpad.net oneiric/main Translation-en             
Ign http://ppa.launchpad.net oneiric/main Translation-en_US
Ign http://ppa.launchpad.net oneiric/main Translation-en
Hit http://us.archive.ubuntu.com oneiric-updates Release
Hit http://us.archive.ubuntu.com oneiric/main Sources
Hit http://us.archive.ubuntu.com oneiric/restricted Sources
Hit http://us.archive.ubuntu.com oneiric/universe Sources
Hit http://us.archive.ubuntu.com oneiric/multiverse Sources
Hit http://us.archive.ubuntu.com oneiric/main amd64 Packages
Hit http://us.archive.ubuntu.com oneiric/restricted amd64 Packages
Hit http://us.archive.ubuntu.com oneiric/universe amd64 Packages
Hit http://us.archive.ubuntu.com oneiric/multiverse amd64 Packages
Hit http://us.archive.ubuntu.com oneiric/main i386 Packages
Hit http://us.archive.ubuntu.com oneiric/restricted i386 Packages
Hit http://us.archive.ubuntu.com oneiric/universe i386 Packages
Hit http://us.archive.ubuntu.com oneiric/multiverse i386 Packages
Hit http://us.archive.ubuntu.com oneiric/main TranslationIndex
Hit http://us.archive.ubuntu.com oneiric/multiverse TranslationIndex
Hit http://us.archive.ubuntu.com oneiric/restricted TranslationIndex
Hit http://us.archive.ubuntu.com oneiric/universe TranslationIndex
Hit http://us.archive.ubuntu.com oneiric-updates/main Sources
Hit http://us.archive.ubuntu.com oneiric-updates/restricted Sources
Hit http://us.archive.ubuntu.com oneiric-updates/universe Sources
Hit http://us.archive.ubuntu.com oneiric-updates/multiverse Sources
Hit http://us.archive.ubuntu.com oneiric-updates/main amd64 Packages
Hit http://us.archive.ubuntu.com oneiric-updates/restricted amd64 Packages
Hit http://us.archive.ubuntu.com oneiric-updates/universe amd64 Packages
Hit http://us.archive.ubuntu.com oneiric-updates/multiverse amd64 Packages
Hit http://us.archive.ubuntu.com oneiric-updates/main i386 Packages
Hit http://us.archive.ubuntu.com oneiric-updates/restricted i386 Packages
Hit http://us.archive.ubuntu.com oneiric-updates/universe i386 Packages
Hit http://us.archive.ubuntu.com oneiric-updates/multiverse i386 Packages
Hit http://us.archive.ubuntu.com oneiric-updates/main TranslationIndex
Hit http://us.archive.ubuntu.com oneiric-updates/multiverse TranslationIndex
Hit http://us.archive.ubuntu.com oneiric-updates/restricted TranslationIndex
Hit http://us.archive.ubuntu.com oneiric-updates/universe TranslationIndex
Hit http://us.archive.ubuntu.com oneiric/main Translation-en
Hit http://us.archive.ubuntu.com oneiric/multiverse Translation-en
Hit http://us.archive.ubuntu.com oneiric/restricted Translation-en
Hit http://us.archive.ubuntu.com oneiric/universe Translation-en
Hit http://us.archive.ubuntu.com oneiric-updates/main Translation-en
Hit http://us.archive.ubuntu.com oneiric-updates/multiverse Translation-en
Hit http://us.archive.ubuntu.com oneiric-updates/restricted Translation-en
Hit http://us.archive.ubuntu.com oneiric-updates/universe Translation-en
Fetched 7,039 B in 5s (1,347 B/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages have been kept back:
  wine
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

答案1

看来您的实际软件包目录没有问题,因此我假设软件中心应用安装缓存已损坏。尝试使用以下命令将其删除:

rm -r ~/.cache/software-center

答案2

查看中提到的解决方案: 如何修复损坏的存储库信息?

 sudo apt-get check && sudo apt-get update 
 sudo apt-get upgrade

我觉得效果不错

答案3

我发布了答案,但被告知这是不正确的,我现在确实遇到了同样的事情,这是由 Adob​​e Flash 播放引起的。我强行关闭它。这导致蠕虫出血。打开终端并输入以下命令,sudo dpkg --configure -a 它会起作用。谢谢

答案4

我建议从您的计算机中删除所有闪存,方法是以 root 身份打开 nautilus 并搜索“adobe flash”并删除所有结果。然后执行 apt-get update

相关内容