看板 Linux 關於我們 聯絡資訊
各位好 我使用的是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) 想請問一下如果這樣要怎麼處理呢? 謝謝各位 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 131.215.7.102
Microscft:在視窗環境用更新常常有以為當機的假象 我也中招過 10/05 14:13
Microscft:再重開機一次就好了 現在我都在終端機更新不用視窗了 10/05 14:14
Microscft:我後來又有實驗用視窗做大量的更新 就定住以為當機了 10/05 14:15
Microscft:其實那不是當機 是在視窗他要跑很久 10/05 14:16
Adama:dpkg --reconfigure 10/05 14:26
Adama:原因就是強制重開,系統中還留有舊套件所以apt搞混了 10/05 14:28
Microscft:你要講的是dpkg-reconfigure吧 10/05 14:38
llewxam:謝謝回覆 我輸入sudo dpkg-reconfigure libldap-2.4-2 10/05 15:01
llewxam:出現 libldap-2.4-2 is broken or not fully installed 10/05 15:02
Adama:可能要加一些force選項,apt強制reinstall? 10/06 09:36
AceIan:移除 libldap-2.4-2 然後安裝 libldap-2.4.28-1.1ubuntu4.4 10/08 14:51
AceIan:sorry 反了 是移除 2.4.28-1.1ubuntu4.4 版的 安裝 2.4-2 10/08 14:52
AceIan:通常遇到這種問題 我會用 aptitude 進去把相依的套件選一選 10/08 14:54
llewxam:謝謝你的回應 我進去synaptic內想要移除 但是相依套件太多 10/11 12:49
llewxam:很多gnome-xx的套件都要移除 除了重灌還有沒有別的方法? 10/11 12:51