apt-get的安裝死結 - Linux

Cara avatar
By Cara
at 2011-02-23T23:18

Table of Contents

各位先進,

小弟在Amazon EC2 Micro instance + Ubuntu 10.04使用apt-get時會出現下列訊息:

E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.

然後執行 'sudo dpkg --configure -a' 則會當機在安裝Java 6的一個程序:

update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/lib/jexec to provide /usr/bin/jexec (jexec) in auto mode.

雖然Java 6不一定要裝, 但現在我所有的apt-get指令都完全不能用, 如apt-get install purge java-6-openjdk會再次出現:

E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.

請問該如何打開這個死結讓apt-get能夠再度安裝其他套件!?

謝謝!

--
Tags: Linux

All Comments

Jake avatar
By Jake
at 2011-02-27T05:44
試過 -f 了嗎
Audriana avatar
By Audriana
at 2011-03-01T20:39
務必先reboot,從開後用aptitude reinstall失敗主程式試試
Frederica avatar
By Frederica
at 2011-03-03T16:30
aptitude reinstall有用! 謝謝wgst88w!

請教一個shell script的寫法

Sandy avatar
By Sandy
at 2011-02-23T16:43
※ 引述《Arim (Arim5566)》之銘言: : 各位版友好 : 小弟想要處理一個樹狀結構的資料 : 假設我現在有一個資料夾dir1 : 其結構可能是 : dir1 : ├── dir2 : │ ├── dir4 : │ ├── file1 : │ └── file2 : ├── ...

Ubuntu裡面看不到光碟機..

Una avatar
By Una
at 2011-02-23T11:29
※ 引述《bullchry (哈)》之銘言: : 大家好~ : 我目前是使用Ubuntu 10.04 : 今天在Ubuntu裡面要放入光碟時,發現Ubuntu光碟機找不到 XD : 但是如果重開機的話 BIOS是有抓到光碟機的 : Ubuntu安裝光碟也可以進去到Live沒有問題 : 去看 /dev/裡面確 ...

[bash] fucn | grep '^'

Candice avatar
By Candice
at 2011-02-23T11:19
##inside shell: function func() { # do someting VARI=1 } ## ##input func | grep and#39;^and#39; echo $VARI ## ##output ## why not display and#34;1and#3 ...

linux下chrome的按鈕位置

Faithe avatar
By Faithe
at 2011-02-23T11:18
※ 引述《trashprince (Contigo ergo and#34;XORand#34;!!)》之銘言: : 我比較習慣kde : 可是看ubuntu 把最大最小化按鈕的位置改到左邊 : 很方便 就有點心動 想要也弄成那個樣子 : kwin改按鈕位置很方便 : 但是我發現chrome的按鈕位置在ubu ...

HTML5 Authoring Tool - 嵌入 Python 的應用

Charlie avatar
By Charlie
at 2011-02-23T09:49
[English below] 大家好! ** 歡迎轉寄 ** 將 Python 嵌入 Inkscape,成為一個可擴充、易擴充的繪圖平台。並以 Scribboo 為例 ,解說如何使用這樣的繪圖平台開發動畫製作和 GUI 製作的工具。內容涉及到如何嵌入 Python 到其它軟體內,並使用 Cython ...