首页 > 代码库 > unable to lock the administration directory问题解决

unable to lock the administration directory问题解决

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

发现没效果,然后有试了下面这组命令:

sudo rm /var/lib/dpkg/lock

sudo rm /var/lib/dpkg/lock

sudo dpkg --configure -a

然后就可以了,至于这些命令什么意思,不知道啊,都是网上搜来的

unable to lock the administration directory问题解决