Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)Unable to lock the administration directory (/var/lib/dpkg/)
You can force the lock off by removing the file, but it's not recommended without first closing the program that's holding the lock Safety.
This will kill any processes opening the file before removing it.
sudo fuser -cuk /var/lib/dpkg/lock; sudo rm -f /var/lib/dpkg/lock
Same command for the apt cache lock:
sudo fuser -cuk /var/cache/apt/archives/lock; sudo rm -f /var/cache/apt/archives/lock
Metod 2:
Try this command in terminal to find what is running:
ps -e | grep -e apt -e adept | grep -v grep
sudo kill -9 "process pid'
sudo rm /var/lib/dpkg/lock
sudo rm /var/cache/apt/archives/lock
Nessun commento:
Posta un commento