异常dpkg: error: dpkg frontend is locked by another process

安装包的时候出现了一个异常

dpkg: error: dpkg frontend is locked by another process

原因是包管理器没有正确关闭。需要重启计算机或者重新打开终端 输入:

sudo rm /var/lib/dpkg/lock

sudo dpkg --configure -a

然后重新安装包。

猜你喜欢

转载自www.cnblogs.com/libra13179/p/12712601.html
今日推荐