apt無法更新套件 - Linux

Genevieve avatar
By Genevieve
at 2013-10-05T13:12

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)

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

謝謝各位

--
Tags: Linux

All Comments

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

PokerTH : 1個可在 Linux 執行的好玩遊戲

Hardy avatar
By Hardy
at 2013-10-05T11:31
從 Ubuntu 軟體中心找到 PokerTH 這個免費軟體 可以在 GNU/Linux , Mac OS X , Microsoft Windows 等作業系統中執行 維基百科的介紹 : http://en.wikipedia.org/wiki/PokerTH 官網 , 可下載軟體 http://www ...

Virtual Box-Ubuntu 剪貼簿 共享資料夾

Hazel avatar
By Hazel
at 2013-10-04T21:37
※ 引述《jonothan ()》之銘言: : ※ [本文轉錄自 EZsoft 看板 #1IJhviAh ] : 作者: jonothan () 看板: EZsoft : 標題: [請問] Virtual Box-Ubuntu 剪貼簿 共享資料夾 : 時間: Fri Oct 4 21:11:04 2013 ...

如何切換Python版本

Mia avatar
By Mia
at 2013-10-04T15:26
如題 因為要用到NS3(network simulator3) 我自己的筆電是安裝好了 但實驗室的因為python版本太舊 所以NS3沒安裝好 現在輸入python-v顯示是2.7..... 我在google上有找到pythonbrew這個管理工具 但下載網址沒辦法連 因此沒法安裝 PS. ...

安裝小程式遇到的問題Error126

Caitlin avatar
By Caitlin
at 2013-10-04T10:51
我需要將衛星資料轉檔,在安裝轉檔的程式中遇到問題了 想請問各位大大以下: ted/RELEASE_2010-03-31andgt; make cd lib; make make[1]: Entering directory `/home/ted/RELEASE_2010-03-31/liband#39; ...

ubuntu多版本+win7多系統可行嗎?

Delia avatar
By Delia
at 2013-10-04T00:27
事情是這樣的 小弟在實驗室學長電腦裡面本來有 windows7 + ubuntu 11.10 後來因為我進來LAB想用這台電腦於是把windows7重灌了一遍 多重開機的方式我是用網路上找到一個EastBCD 2.2的軟體讓他可以成功雙系統 但現在因為實驗需要ubuntu 12.04 可是學長命令我 ...