sudo安装软件的时候出现Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)

最近在安装软件的时候经常出现下面提示:

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?

网上介绍了很多方法,液谷歌了,下面的方法最有效:

k@localhost:~$ sudo rm /var/cache/apt/archives/lock
k@localhost:~$ sudo rm /var/lib/dpkg/lock

上一篇:HDU 4336 Card Collector 数学期望(容斥原理)


下一篇:acitvemq的jvm监控