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数据库。可能是软件中心,apt-get等。
解决方法:
- 列举apt进程
ps aux | grep apt
- 杀掉进程
kill processnumber