E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable) [...

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

你可能感兴趣的:(E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable) [...)