1、sudo killall apt apt-get
2、如果上述命令没有效果,则继续执行以下命令:
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
1、sudo killall apt apt-get
2、如果上述命令没有效果,则继续执行以下命令:
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