问题:
在vmware 虚拟机安装了ubuntu20。由于其它的操作,下载安装指令时,提示出错:
E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 。。。。
N: Be aware that removing the lock file is not a solution and may break your system.
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
解决方法:
在Linux终端中的所在镜像依次输入下面的命令(要权限的前面加上sudo即可)
sudo rm /var/lib/apt/lists/lock
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock*
sudo dpkg --configure -a
操作完成后,就可以再次下载安装了。