天天看點

Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

sudo apt-get install net-tools

Ubuntu 今天安裝網絡工具的時候出現錯誤

E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)

E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

出現這個問題可能是有另外一個程式正在運作,導緻資源被鎖不可用。而導緻資源被鎖的原因可能是上次運作安裝或更新時沒有正常完成,進而出現此狀況,解決的辦法其實很簡單:

在終端中敲入以下兩句