Ubuntu 16.0.4中,有时候运用sudo apt-get install 安装软件时,会出现一下的情况
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 和apt进程
代码:
ps -A | grep apt
kill -9 id号
执行完上述步骤,如还有出现 ,这个错误:
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a'
to correct the problem.
解决方法:
sudo dpkg --configure -a