Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-front)

报错信息如下

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

从字面上的意思是说这个文件有其他进程被占用!!

遇事不要百度,先自己查找原因,才能成长


解决方案

查看被占用的进程,并且杀掉进程就够了

关键来了,如果查出被占用的进程

ps -aux | grep -i apt
kill -9 8170

如果到这里,还是不能解决问题,继续往下看


提示什么文件被锁 就删除lock文件,报错什么删什么

原文链接:,转发请注明来源!