作者tren (窗外有藍天)
看板Linux
標題apt-get的安裝死結
時間Wed Feb 23 23:18:39 2011
各位先進,
小弟在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能夠再度安裝其他套件!?
謝謝!
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 128.197.77.143
→ Bellkna:試過 -f 了嗎 02/24 00:47
推 wgst88w:務必先reboot,從開後用aptitude reinstall失敗主程式試試 02/24 00:47
→ tren:aptitude reinstall有用! 謝謝wgst88w! 02/24 06:34