并非所有更新都可以安装:部分升级

我正在尝试通过Software Updater应用程序将我的vmware播放器Ubuntu vm更新为Saucy Salamander。 可悲的是,当它正在安装软件包时,vmware播放器给出了这个我以前从未见过的非常奇怪的错误。 我不记得它是什么,但我可以通过点击retrypass onto vm或类似的选项继续。 pass onto vm选项导致vm完全崩溃。

在尝试再次启动vm时,我收到了这个奇怪的错误,说我可以take ownershipcancel启动。 真的很奇怪,但是取得所有权选项说它可能会损坏我的虚拟机。

我决定关闭Windows 7。 重新启动我的电脑后,我可以启动我的虚拟机,当软件更新程序启动正常时,它会在完成checking for updates时不断变灰。

通过运行从命令行启动Software Updater

 $ sudo update-manager 

揭示出现这些错误:

 Error loading .desktop file /usr/share/applications/gnomine.desktop: constructor returned NULL Error loading .desktop file /usr/share/app-install/desktop/gnome-mines:gnome-mines.desktop: constructor returned NULL Error loading .desktop file /usr/share/applications/gnome-sudoku.desktop: constructor returned NULL Error loading .desktop file /usr/share/app-install/desktop/gnome-sudoku:gnome-sudoku.desktop: constructor returned NULL Error loading .desktop file /usr/share/applications/mahjongg.desktop: constructor returned NULL Error loading .desktop file /usr/share/app-install/desktop/gnome-control-center-signon:update-accounts.desktop: constructor returned NULL 

不知道如何继续,但这是我现在的第三次启动,这是相同的故事。

Ubuntu工作得很好,但软件更新程序/更新管理器完全被炒了。 有什么建议吗? Ubuntu nooby在这里说话,但这是否意味着问题是肤浅的? 它只是与GUI有关,可以很容易地修复? 这并不像是为了善良而尝试任何精神。

这可以修复错误吗?

 sudo apt-get install -f 

在我运行它之前, f标志究竟做了什么?

更新

让它运行大约60分钟,它解决了! 它说我只能进行partial update ,而这个problem can be caused by damaged or unofficial software. 这种损坏是由错误造成的吗? 完整信息:

 Not all Updates can be installed Run a partial upgrade, to install as many updates as possible. This can be caused by: * A previous upgrade which didn't complete * Problems with some of the installed software * Inofficial software packages not provided by Ubuntu * Normal changes of a pre-release version of Ubuntu Partial Upgrade Close 

我应该担心吗? 更新仍在进行中,所以我不知道是否会再次遇到同样的错误。

是的,请尝试并运行

 sudo apt-get install -f 

从我们找到的--help用法文本

 -f Attempt to correct a system with broken dependencies in place 

你可以通过使用来达到这个目的

 apt-get install --help 

阅读用法的另一个好方法是使用手册页。 apt-get状态的手册页

 -f, --fix-broken Fix; attempt to correct a system with broken dependencies in place. This option, when used with install/remove, can omit any packages to permit APT to deduce a likely solution. If packages are specified, these have to completely correct the problem. The option is sometimes necessary when running APT for the first time; APT itself does not allow broken package dependencies to exist on a system. It is possible that a system's dependency structure can be so corrupt as to require manual intervention (which usually means using dselect(1) or dpkg --remove to eliminate some of the offending packages). Use of this option together with -m may produce an error in some situations. Configuration Item: APT::Get::Fix-Broken. 

运行部分升级没有任何问题,顺便说一下,它通常以包方式修复问题。 如果你以后继续遇到这些问题,请告诉我。 最好的祝福

我知道它有点晚了,但我今天受到这个问题的影响(Ubuntu 14.04 LTS运行我的盒子)我相信这可能是更新管理器的某种问题。 无论如何,我尝试了dpkgapt-get的任何可能的选项,但没有一个工作。 最后,老好的Synaptic完成了这项工作,安装了更新管理器中所有灰色的软件包。