如果运行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还在运行,那就结束apt进程运行,有两种方法:
一:
查看apt进程:
ps -A|grep apt
杀死进程:
sudo kill -num(进程前面序号)
二:
删除锁死文件:
sudo rm /var/lib/dpkg/lock
然后重新配置和更新软件包
sudo dpkg --configure -a
sudo apt-ge update