ubuntu - Could not get lock /var/cache/apt/archives/lock – open (11: Resource temporarily unavailable).

访问量: 465

refer to: https://itsfoss.com/fix-ubuntu-install-error/

today when removing python3, I found the mysql-server will also be removed. so I pressed ctrl +c, ctrl + z.

sudo killall apt-get

sudo rm /var/lib/apt/lists/lock
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock

sudo dpkg --configure -a

订阅/RSS Feed

Subscribe