部分升级错误

部分升级错误

我已经在 Google 上搜索过很多次这个问题,并且尝试了很多解决方法,但都没有真正起作用。

在某个时候(我不记得什么时候/怎么发生的)我的更新系统出现了故障,从那时起它总是抱怨“并非所有更新都可以安装,请运行部分升级”。

在此处输入图片描述

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

在此处输入图片描述

但是运行 apt-get install -f 并不能解决任何问题,最后我总是收到以下消息

在此处输入图片描述

有趣的是,我的 apt-get 系统在控制台上运行完美。我可以通过 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 ~ $

答案1

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

尝试以下一项(或多项):

(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

更新:

您的活动源应该(很可能)不包含“反向移植”元素:

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

(snip)
## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. 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

这些也不应该说“梦幻的-反向移植'!?

相关内容