部分升级错误

这是一个我用Google搜索过的问题而且我已经尝试了很多修复,但是没有它们真的有效。

在某些时候(我不记得何时/如何)我的更新系统破坏了,从那以后它总是抱怨“并非所有更新都可以安装,运行部分升级”。

在此处输入图像描述

如果我点击部分升级,我会得到以下结果

在此处输入图像描述

但是运行apt-get install -f并没有修复任何问题,最后我总是收到以下消息

在此处输入图像描述

有趣的是,我的apt-get系统在Console上运行完美。 我可以通过apt-get update,apt-get upgrade等来更新我的系统。

那么..我该如何修复图形界面? 我知道我的apt-get系统没有被破坏,但不知何故它的GUI就是这样。

有什么想法吗?

谢谢!

PD:我已经尝试过sudo dpkg --configure -asudo apt-get autoremove

编辑 :这是我在sudo apt-get update && sudo apt-get upgrade之后获得的输出

 > dan@dan ~ $ sudo apt-get update && sudo apt-get upgrade Ign > http://archive.canonical.com oneiric InRelease Ign > http://security.ubuntu.com oneiric-security InRelease Ign > http://gb.archive.ubuntu.com oneiric InRelease Ign > http://gb.archive.ubuntu.com oneiric-updates InRelease Ign > http://gb.archive.ubuntu.com oneiric-backports InRelease Hit > http://archive.canonical.com oneiric Release.gpg Hit > http://security.ubuntu.com oneiric-security Release.gpg Hit > http://archive.canonical.com oneiric Release Hit > http://gb.archive.ubuntu.com oneiric Release.gpg Hit > http://gb.archive.ubuntu.com oneiric-updates Release.gpg Hit > http://security.ubuntu.com oneiric-security Release Hit > http://gb.archive.ubuntu.com oneiric-backports Release.gpg Hit > http://gb.archive.ubuntu.com oneiric Release Hit > http://archive.canonical.com oneiric/partner i386 Packages Ign > http://archive.canonical.com oneiric/partner TranslationIndex > Hit http://gb.archive.ubuntu.com oneiric-updates Release > Hit http://gb.archive.ubuntu.com oneiric-backports Release > Hit http://security.ubuntu.com oneiric-security/main Sources > Hit http://gb.archive.ubuntu.com oneiric/main Sources > Hit http://gb.archive.ubuntu.com oneiric/restricted Sources > Hit http://gb.archive.ubuntu.com oneiric/universe Sources > Hit http://gb.archive.ubuntu.com oneiric/multiverse Sources > Hit http://gb.archive.ubuntu.com oneiric/main i386 Packages > Hit http://gb.archive.ubuntu.com oneiric/restricted i386 Packages > 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 i386 Packages > Hit http://security.ubuntu.com oneiric-security/restricted i386 > Packages Hit http://gb.archive.ubuntu.com oneiric/universe i386 > Packages Hit http://gb.archive.ubuntu.com oneiric/multiverse > i386 Packages Hit http://gb.archive.ubuntu.com oneiric/main > TranslationIndex Hit http://gb.archive.ubuntu.com > oneiric/multiverse TranslationIndex Hit http://gb.archive.ubuntu.com > oneiric/restricted TranslationIndex Hit http://gb.archive.ubuntu.com > oneiric/universe TranslationIndex Hit http://gb.archive.ubuntu.com > oneiric-updates/main Sources Hit http://gb.archive.ubuntu.com > oneiric-updates/restricted Sources Hit http://security.ubuntu.com > oneiric-security/universe i386 Packages Hit http://security.ubuntu.com > oneiric-security/multiverse i386 Packages Hit > http://security.ubuntu.com oneiric-security/main TranslationIndex Hit > http://security.ubuntu.com oneiric-security/multiverse > TranslationIndex Hit http://security.ubuntu.com > oneiric-security/restricted TranslationIndex Hit > http://gb.archive.ubuntu.com oneiric-updates/universe Sources Hit > http://gb.archive.ubuntu.com oneiric-updates/multiverse Sources Hit > http://gb.archive.ubuntu.com oneiric-updates/main i386 Packages Hit > http://gb.archive.ubuntu.com oneiric-updates/restricted i386 Packages > Hit http://security.ubuntu.com oneiric-security/universe > TranslationIndex Hit http://gb.archive.ubuntu.com > oneiric-updates/universe i386 Packages Hit > http://gb.archive.ubuntu.com oneiric-updates/multiverse i386 Packages > Hit http://gb.archive.ubuntu.com oneiric-updates/main TranslationIndex > Hit http://gb.archive.ubuntu.com oneiric-updates/multiverse > TranslationIndex Hit http://gb.archive.ubuntu.com > oneiric-updates/restricted TranslationIndex Hit > http://gb.archive.ubuntu.com oneiric-updates/universe TranslationIndex > Hit http://security.ubuntu.com oneiric-security/main Translation-en > Hit http://security.ubuntu.com oneiric-security/multiverse > Translation-en Hit http://gb.archive.ubuntu.com oneiric-backports/main > Sources Hit http://gb.archive.ubuntu.com > oneiric-backports/restricted Sources Hit http://gb.archive.ubuntu.com > oneiric-backports/universe Sources Hit http://gb.archive.ubuntu.com > oneiric-backports/multiverse Sources Hit http://gb.archive.ubuntu.com > oneiric-backports/main i386 Packages Hit http://gb.archive.ubuntu.com > oneiric-backports/restricted i386 Packages Hit > http://gb.archive.ubuntu.com oneiric-backports/universe i386 Packages > Hit http://gb.archive.ubuntu.com oneiric-backports/multiverse i386 > Packages Hit http://gb.archive.ubuntu.com oneiric-backports/main > TranslationIndex Hit http://security.ubuntu.com > oneiric-security/restricted Translation-en Hit > http://gb.archive.ubuntu.com oneiric-backports/multiverse > TranslationIndex Hit http://gb.archive.ubuntu.com > oneiric-backports/restricted TranslationIndex Hit > http://gb.archive.ubuntu.com oneiric-backports/universe > TranslationIndex Hit http://gb.archive.ubuntu.com oneiric/main > Translation-en_GB Hit http://gb.archive.ubuntu.com oneiric/main > Translation-en Hit http://gb.archive.ubuntu.com > oneiric/multiverse Translation-en_GB Hit http://security.ubuntu.com > oneiric-security/universe Translation-en Hit > http://gb.archive.ubuntu.com oneiric/multiverse Translation-en Hit > http://gb.archive.ubuntu.com oneiric/restricted Translation-en_GB Hit > http://gb.archive.ubuntu.com oneiric/restricted Translation-en Hit > http://gb.archive.ubuntu.com oneiric/universe Translation-en_GB Ign > http://archive.canonical.com oneiric/partner Translation-en_GB Hit > http://gb.archive.ubuntu.com oneiric/universe Translation-en Hit > http://gb.archive.ubuntu.com oneiric-updates/main Translation-en Hit > http://gb.archive.ubuntu.com oneiric-updates/multiverse Translation-en > Hit http://gb.archive.ubuntu.com oneiric-updates/restricted > Translation-en Hit http://gb.archive.ubuntu.com > oneiric-updates/universe Translation-en Hit > http://gb.archive.ubuntu.com oneiric-backports/main Translation-en Ign > http://archive.canonical.com oneiric/partner Translation-en Hit > http://gb.archive.ubuntu.com oneiric-backports/multiverse > Translation-en Hit http://gb.archive.ubuntu.com > oneiric-backports/restricted Translation-en Hit > http://gb.archive.ubuntu.com oneiric-backports/universe Translation-en > Reading package lists... Done Reading package lists... Done Building > dependency tree Reading state information... Done 0 upgraded, 0 > newly installed, 0 to remove and 0 not upgraded. dan@dan ~ $ 

检查您的软件源,并删除任何未使用或过时的存储库。

尝试其中一个(或多个):

 (remove unmet dependencies) sudo apt-get -f install (remove .deb archives from packages no longer installed) sudo apt-get autoclean (clear files from Aptitude cache: /var/cache/apt/archives ) sudo apt-get clean 

发布更新和升级的输出:

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

更新:

您的活动源应该(很可能)不包含’backport’元素:

这是我的设置:(编辑为’GB’,而不是’NZ’)

 (snip) ## Uncomment the following two lines to add software from the 'backports' ## repository. ## NB software from this repository may not have been tested as ## extensively as that contained in the main release, although it includes ## newer versions of some applications which may provide useful features. ## Also, please note that software in backports WILL NOT receive any review ## or updates from the Ubuntu security team. # deb http://gb.archive.ubuntu.com/ubuntu/ maverick-backports main restricted universe multiverse # deb-src http://gb.archive.ubuntu.com/ubuntu/ maverick-backports main restricted universe multiverse 

而你的“来源”似乎是:(或等同)

 deb http://gb.archive.ubuntu.com/ubuntu/ oneiric-backports main restricted universe multiverse 

这些也不应该说’ oneiric -backports’!