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?
首先kill掉所有apt或apt-get占用的进程。
sudo killall apt apt-get
如果报告没有apt进程
apt: no process found
apt-get: no process found
去锁并配置package
sudo rm /var/lib/apt/lists/lock
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock*
sudo dpkg --configure -a
更新apt
sudo apt update