Sunday, April 16, 2017

Could not get lock var lib dpkg lock open 11 Resource temporarily unavailable

Could not get lock var lib dpkg lock open 11 Resource temporarily unavailable


You can use sudo lsof /var/lib/dpkg/lock to find the process that owns the lock file (if empty, assume the lock is left over from a previous boot and can be sudo rmd), then consider doing a sudo kill -9 (get from lsof output.




You can delete the lock file with the following command:
sudo rm /var/lib/apt/lists/lock
You may also need to delete the lock file in the cache directory
sudo rm /var/cache/apt/archives/lock
After that, try opening Synaptic again.
 

Go to link Download