首页 > 代码库 > Debian apt-get 安装意外中断后导致资源被锁

Debian 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 /var/cache/apt/archives/lock 
sudo rm /var/lib/dpkg/lock