【异常】Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process u

当运行sudo apt-get install/update/或其他命令时 种种原因导致中断

解决方案  关掉

ps -e|grep apt-get

2393275 pts/0    00:00:00 apt-get

关闭

kill 2393275

然后接着执行升级命令

如果还提示

E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.

需要执行

sudo rm /var/lib/dpkg/lock

sudo dpkg --configure -a