Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?

首先查看是否有进程占用,有则kill

ps -e | grep apt 或者 ps -e | grep apt-get

kill -9 进程id

没有,可以强制清锁

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

sudo rm /var/lib/dpkg/lock

注意:清锁后必须reboot系统才能生效

猜你喜欢

转载自blog.csdn.net/wxd772113786/article/details/103566261