Could not get lock /var/lib/dpkg/lock - open (Resource temporarily unavailable) Category : Ubuntu Errors | Updated at : 2019-02-15 01:28:45

E: Could not get lock /var/lib/dpkg/lock - open (Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?


solution :

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
sudo rm /var/lib/dpkg/lock


After that, try opening Terminal again.