Ubuntu Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)

 在ubuntu安装某软件sudo apt-get install xxx时出错: 
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 /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock

要回复问题请先登录注册