i am Roger Li

apt-get update 出現 「Could not get lock /var/lib/dpkg/lock」

執行apt-get update 後遇到:

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?

可能因為上次行緊apt-get 時hang 咗,只要remove lock file就可以:

sudo rm /var/lib/apt/lists/lock sudo rm /var/cache/apt/archives/lock sudo rm /var/lib/dpkg/lock 

發表回覆

你的電郵地址並不會被公開。 必要欄位標記為 *