apt無法更新套件 - Linux

Table of Contents

各位好 我使用的是Linux Mint 13

昨天在更新的時候電腦忽然當機

重開之後有套件安裝不完全 想要fix broken 也無法

下面是我出現的訊息

sudo apt-get install --fix-broken

Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
libftgl2 libosmesa6 fceu libhdf4-0 libhdf5-serial-1.8.4 libmgl-data
libgfortran3 python-support libmgl5 libqhull5
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
libldap-2.4-2
The following packages will be upgraded:
libldap-2.4-2
1 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
2 not fully installed or removed.
Need to get 0 B/185 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]?
dpkg: error processing libldap-2.4-2 (--configure):
libldap-2.4-2:amd64 2.4.28-1.1ubuntu4.3 cannot be configured because libldap-2.4-2:i386 is in a different version (2.4.28-1.1ubuntu4.4)
dpkg: error processing libldap-2.4-2:i386 (--configure):
libldap-2.4-2:i386 2.4.28-1.1ubuntu4.4 cannot be configured because libldap-2.4-2:amd64 is in a different version (2.4.28-1.1ubuntu4.3)
Errors were encountered while processing:
libldap-2.4-2
libldap-2.4-2:i386
E: Sub-process /usr/bin/dpkg returned an error code (1)

想請問一下如果這樣要怎麼處理呢?

謝謝各位

--

All Comments

Joe avatarJoe2013-10-08
在視窗環境用更新常常有以為當機的假象 我也中招過
Todd Johnson avatarTodd Johnson2013-10-12
再重開機一次就好了 現在我都在終端機更新不用視窗了
Xanthe avatarXanthe2013-10-17
我後來又有實驗用視窗做大量的更新 就定住以為當機了
Dinah avatarDinah2013-10-22
其實那不是當機 是在視窗他要跑很久
Agnes avatarAgnes2013-10-23
dpkg --reconfigure
Enid avatarEnid2013-10-23
原因就是強制重開,系統中還留有舊套件所以apt搞混了
Bethany avatarBethany2013-10-28
你要講的是dpkg-reconfigure吧
Todd Johnson avatarTodd Johnson2013-10-28
謝謝回覆 我輸入sudo dpkg-reconfigure libldap-2.4-2
Damian avatarDamian2013-10-29
出現 libldap-2.4-2 is broken or not fully installed
Una avatarUna2013-10-30
可能要加一些force選項,apt強制reinstall?
Irma avatarIrma2013-11-01
移除 libldap-2.4-2 然後安裝 libldap-2.4.28-1.1ubuntu4.4
Poppy avatarPoppy2013-11-02
sorry 反了 是移除 2.4.28-1.1ubuntu4.4 版的 安裝 2.4-2
Ophelia avatarOphelia2013-11-05
通常遇到這種問題 我會用 aptitude 進去把相依的套件選一選
Madame avatarMadame2013-11-09
謝謝你的回應 我進去synaptic內想要移除 但是相依套件太多
Zenobia avatarZenobia2013-11-10
很多gnome-xx的套件都要移除 除了重灌還有沒有別的方法?