转自:http://blog.sina.com.cn/s/blog_6d12074301019x4n.html
ubuntu下通过终端apt-get安装程序时报错:
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?
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
导致资源被锁的原因可能是上次运行安装或更新时没有正常完成
在终端敲下面两句可以解决
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock