[問題] apt無法更新套件

看板Linux作者 (鋼琴中的大賦格)時間12年前 (2013/10/05 13:12), 編輯推噓2(2013)
留言15則, 4人參與, 最新討論串1/1
各位好 我使用的是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

10/05 14:13, , 1F
在視窗環境用更新常常有以為當機的假象 我也中招過
10/05 14:13, 1F

10/05 14:14, , 2F
再重開機一次就好了 現在我都在終端機更新不用視窗了
10/05 14:14, 2F

10/05 14:15, , 3F
我後來又有實驗用視窗做大量的更新 就定住以為當機了
10/05 14:15, 3F

10/05 14:16, , 4F
其實那不是當機 是在視窗他要跑很久
10/05 14:16, 4F

10/05 14:26, , 5F
dpkg --reconfigure
10/05 14:26, 5F

10/05 14:28, , 6F
原因就是強制重開,系統中還留有舊套件所以apt搞混了
10/05 14:28, 6F

10/05 14:38, , 7F
你要講的是dpkg-reconfigure吧
10/05 14:38, 7F

10/05 15:01, , 8F
謝謝回覆 我輸入sudo dpkg-reconfigure libldap-2.4-2
10/05 15:01, 8F

10/05 15:02, , 9F
出現 libldap-2.4-2 is broken or not fully installed
10/05 15:02, 9F

10/06 09:36, , 10F
可能要加一些force選項,apt強制reinstall?
10/06 09:36, 10F

10/08 14:51, , 11F
移除 libldap-2.4-2 然後安裝 libldap-2.4.28-1.1ubuntu4.4
10/08 14:51, 11F

10/08 14:52, , 12F
sorry 反了 是移除 2.4.28-1.1ubuntu4.4 版的 安裝 2.4-2
10/08 14:52, 12F

10/08 14:54, , 13F
通常遇到這種問題 我會用 aptitude 進去把相依的套件選一選
10/08 14:54, 13F

10/11 12:49, , 14F
謝謝你的回應 我進去synaptic內想要移除 但是相依套件太多
10/11 12:49, 14F

10/11 12:51, , 15F
很多gnome-xx的套件都要移除 除了重灌還有沒有別的方法?
10/11 12:51, 15F
文章代碼(AID): #1IJv_5YM (Linux)
文章代碼(AID): #1IJv_5YM (Linux)