Could not open lock file/var/lib/dpkg/lock

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?  

 解决办法:

sudo rm -rf /var/lib/dpkg/lock   

sudo rm -rf /var/cache/apt/archives/lock   

sudo apt-get update  

sudo dpkg --configure -a  #重新配置

  

 

posted @ 2018-07-18 23:39  bohaoist  阅读(226)  评论(0编辑  收藏  举报