使用apt安装时报错:
E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
解决方案
方案一:
sudo kllall apt apt-get
如果提示没有apt进程:
apt: no process found
apt-get: no process found
往下看方案二
方案二:
依次执行:
sudo rm /var/lib/apt/lists/lock
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock*
sudo dpkg --configure -a sudo apt update
========================================================================
解决执行sudo apt-get install命令出现Could not get lock错误
APT
APT的全称为Advanced Packaging Tools。与YUM对应,它最早被设计成DPKG的前端软件,现在通过apt-rpm也支持rpm管理。而apt-get是APT的主要包管理工具,通过此工具可满足和上述YUM相似的功能要求。
执行sudo apt-get install命令时出现Could not get lock错误:
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
解决方法:
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock
==基于Ubuntu18.04_x64
=VMware Workstation 16 Player