更新管理器显示“并非可以安装所有更新”


9

我已经在Gnome 3中安装了11.04,并且一切正常,直到尝试运行更新管理器为止。现在,我无法更新任何软件包。不久前发布了类似的问题,但未提出解决方案

编辑

来自的输出 sudo apt-get update && sudo apt-get upgrade

Ign http://extras.ubuntu.com natty InRelease
Ign http://ppa.launchpad.net natty InRelease                        
Ign http://us.archive.ubuntu.com natty InRelease                     
Ign http://us.archive.ubuntu.com natty-updates InRelease                       
Ign http://security.ubuntu.com natty-security InRelease                        
Hit http://extras.ubuntu.com natty Release.gpg                       
Hit http://ppa.launchpad.net natty Release.gpg                       
Hit http://us.archive.ubuntu.com natty Release.gpg                   
Hit http://security.ubuntu.com natty-security Release.gpg            
Hit http://extras.ubuntu.com natty Release                           
Hit http://ppa.launchpad.net natty Release                                     
Hit http://us.archive.ubuntu.com natty-updates Release.gpg                     
Hit http://security.ubuntu.com natty-security Release                 
Hit http://extras.ubuntu.com natty/main Sources                                
Hit http://us.archive.ubuntu.com natty Release                       
Hit http://ppa.launchpad.net natty/main Sources                                
Hit http://security.ubuntu.com natty-security/main Sources                     
Hit http://extras.ubuntu.com natty/main i386 Packages                          
Ign http://extras.ubuntu.com natty/main TranslationIndex             
Hit http://us.archive.ubuntu.com natty-updates Release               
Hit http://ppa.launchpad.net natty/main i386 Packages                          
Ign http://ppa.launchpad.net natty/main TranslationIndex                       
Hit http://security.ubuntu.com natty-security/restricted Sources               
Hit http://security.ubuntu.com natty-security/universe Sources                 
Hit http://security.ubuntu.com natty-security/multiverse Sources               
Hit http://security.ubuntu.com natty-security/main i386 Packages               
Hit http://security.ubuntu.com natty-security/restricted i386 Packages         
Hit http://us.archive.ubuntu.com natty/main Sources                  
Hit http://us.archive.ubuntu.com natty/restricted Sources            
Hit http://us.archive.ubuntu.com natty/universe Sources              
Hit http://us.archive.ubuntu.com natty/multiverse Sources            
Hit http://us.archive.ubuntu.com natty/main i386 Packages            
Hit http://security.ubuntu.com natty-security/universe i386 Packages 
Hit http://security.ubuntu.com natty-security/multiverse i386 Packages
Ign http://security.ubuntu.com natty-security/main TranslationIndex            
Ign http://security.ubuntu.com natty-security/multiverse TranslationIndex      
Ign http://security.ubuntu.com natty-security/restricted TranslationIndex
Ign http://security.ubuntu.com natty-security/universe TranslationIndex
Hit http://us.archive.ubuntu.com natty/restricted i386 Packages      
Hit http://us.archive.ubuntu.com natty/universe i386 Packages        
Hit http://us.archive.ubuntu.com natty/multiverse i386 Packages      
Ign http://us.archive.ubuntu.com natty/main TranslationIndex         
Ign http://us.archive.ubuntu.com natty/multiverse TranslationIndex   
Ign http://us.archive.ubuntu.com natty/restricted TranslationIndex             
Ign http://us.archive.ubuntu.com natty/universe TranslationIndex               
Hit http://us.archive.ubuntu.com natty-updates/main Sources          
Hit http://us.archive.ubuntu.com natty-updates/restricted Sources    
Hit http://us.archive.ubuntu.com natty-updates/universe Sources      
Hit http://us.archive.ubuntu.com natty-updates/multiverse Sources    
Hit http://us.archive.ubuntu.com natty-updates/main i386 Packages    
Hit http://us.archive.ubuntu.com natty-updates/restricted i386 Packages
Hit http://us.archive.ubuntu.com natty-updates/universe i386 Packages
Hit http://us.archive.ubuntu.com natty-updates/multiverse i386 Packages        
Ign http://us.archive.ubuntu.com natty-updates/main TranslationIndex           
Ign http://us.archive.ubuntu.com natty-updates/multiverse TranslationIndex
Ign http://us.archive.ubuntu.com natty-updates/restricted TranslationIndex
Ign http://us.archive.ubuntu.com natty-updates/universe TranslationIndex
Ign http://extras.ubuntu.com natty/main Translation-en_US            
Ign http://ppa.launchpad.net natty/main Translation-en_US            
Ign http://extras.ubuntu.com natty/main Translation-en               
Ign http://ppa.launchpad.net natty/main Translation-en               
Ign http://security.ubuntu.com natty-security/main Translation-en_US 
Ign http://security.ubuntu.com natty-security/main Translation-en
Ign http://security.ubuntu.com natty-security/multiverse Translation-en_US
Ign http://security.ubuntu.com natty-security/multiverse Translation-en
Ign http://security.ubuntu.com natty-security/restricted Translation-en_US
Ign http://security.ubuntu.com natty-security/restricted Translation-en
Ign http://security.ubuntu.com natty-security/universe Translation-en_US
Ign http://security.ubuntu.com natty-security/universe Translation-en
Ign http://us.archive.ubuntu.com natty/main Translation-en_US
Ign http://us.archive.ubuntu.com natty/main Translation-en
Ign http://us.archive.ubuntu.com natty/multiverse Translation-en_US
Ign http://us.archive.ubuntu.com natty/multiverse Translation-en
Ign http://us.archive.ubuntu.com natty/restricted Translation-en_US
Ign http://us.archive.ubuntu.com natty/restricted Translation-en
Ign http://us.archive.ubuntu.com natty/universe Translation-en_US
Ign http://us.archive.ubuntu.com natty/universe Translation-en
Ign http://us.archive.ubuntu.com natty-updates/main Translation-en_US
Ign http://us.archive.ubuntu.com natty-updates/main Translation-en
Ign http://us.archive.ubuntu.com natty-updates/multiverse Translation-en_US
Ign http://us.archive.ubuntu.com natty-updates/multiverse Translation-en
Ign http://us.archive.ubuntu.com natty-updates/restricted Translation-en_US
Ign http://us.archive.ubuntu.com natty-updates/restricted Translation-en
Ign http://us.archive.ubuntu.com natty-updates/universe Translation-en_US
Ign http://us.archive.ubuntu.com natty-updates/universe Translation-en

Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages have been kept back:
  brasero brasero-cdrkit brasero-common empathy empathy-common eog evince
  evince-common gedit gedit-common gnome-disk-utility gnome-keyring
  gnome-media gnome-shell gnome-system-monitor gnome-terminal
  gnome-terminal-data gnome-themes-selected gucharmap gvfs gvfs-backends
  gvfs-fuse libcanberra-pulse libcanberra0 libgcr0 libgdu-gtk0
  libgnome-keyring0 libgtk-vnc-1.0-0 libgucharmap7 light-themes
  linux-generic-pae linux-headers-generic-pae linux-image-generic-pae
  nautilus-sendto-empathy seahorse totem totem-common totem-mozilla
  totem-plugins vinagre yelp zenity
0 upgraded, 0 newly installed, 0 to remove and 42 not upgraded.

编辑3

在安装了每个sudo apt-get install [package]被阻止的软件包之后,一切似乎都很正常。那么,为什么我必须重新安装所有内容?我假设它与gnome3有关,因为每个软件包都是通过其回购安装的。


谢谢-举例来说,如果您键入sudo apt-get install totem错误,会看到什么错误?-再次记得将此添加回您的问题。
fossfreedom

@fossfreedom已安装totem并正在运行并update&& upgrade允许我进行更新,eog但其他软件包仍
受阻

好的-一步一步-让我们找到绝对被保留的软件包-尝试使用安装该软件包sudo apt-get install <packagename>-如果出现错误-用此新软件包错误替换图腾编辑。
fossfreedom

Answers:


9

我发现有时程序包管理器无法应对特定PPA请求更新的更改范围。

例如,管理器开始处理文件,但放弃声明错误的依赖关系-无需进一步分析PPA中的一个或多个更高版本的软件包将满足该依赖关系。

在这些情况下,您应该执行以下操作-在终端中运行

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

这将为您提供无法安装的软件包列表。

逐一尝试安装列表,即

sudo apt-get install <package name>

完成此操作后,重复执行update / upgrade命令并重复请求的其余软件包/新软件包。您可能需要执行几次此操作,直到安装了所有软件包。


1
我只是想知道:据我所知,该'Not all updates can be installed'消息通常带有的选项'Run partial upgrade'。作为解决该问题的GUI方式,您是否(同时)建议运行“部分升级”,重新启动,然后检查重新启动后是否Update Mgr还有其他事情要做?您的命令行方法和此“ GUI”方法是否等同于同一件事?同样“安全” /可靠吗?
关于natty的坚果,

如果您保留了软件包,请看这里:askubuntu.com/questions/601/…因为您可能会因为安装而破坏系统。
LAFK说恢复莫妮卡的时间为
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.