ubuntu 升級終端后 dpkg: error: 出錯解決方法作者:duanchilde 日期:2012-12-16dpkg: error: dpkg status database is locked by another process無法獲得鎖 /var/lib/apt/lists/lock - open ubuntu升級錯誤或強制中斷后容易爆出上面兩個錯誤,怎么解決呢? 下面大致總結(jié)一下: First, type $sudo rm /var/lib/dpkg/lock and then type $sudo dpkg --configure -a in the terminal. Now, dpkg can work. Reference: http:///showthread.php?p=11508389 同樣 無法獲得鎖 /var/lib/apt/lists/lock - open 可以通過 sudo rm /var/lib/apt/lists/lock 來解決 但是注意同一時間只能用一個dpkg 也就是同時只能升級一個,當打開多個安裝時 彈出 無法獲得鎖 /var/lib/apt/lists/lock - open 這是正常的 我說的要解鎖的是升級卡住強制退出的時候的解決方法,比如這次升級flash 不知道什么原因一直卡在 flashplush install 這里 $sudo rm /var/lib/dpkg/lock $sudo dpkg --configure -a sudo rm /var/lib/apt/lists/lock 然后直接去adobe下載后使用dpkg或軟件中心安裝的 |
|
來自: 暖風(fēng)醉伊人 > 《linux》