Ubuntu apt常见问题:unable to acquire the dpkg frontend lock /var/lib/dpkg/lock-frontend
错误信息
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend
解决方法
首先kill所有apt apt-get进程
sudo killall apt apt-get
然后试着apt install package,要是仍然报错,直接把lock删了
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock