Ubuntu apt-get 安装不了的问题

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?

需要用

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

来简单解决问题,在此记录一下

Leave a Reply

Your email address will not be published. Required fields are marked *