How to Fix 'Could not get lock /var/lib/dpkg/lock - open (11 : Resource temporarily unavailable)' Errors !




         When we start a work in terminal in Ubuntu operating system, then sometimes we faced a common problem which breaks our concentration on the targeted work. Specially when we start to upgrade our computer system software, Ubuntu, it sometimes comes with an error displaying 'could not get lock /var/lib/dpkg/lock....'

Here, in this article, discussed below how to get rid from this error -


Simply apply the commands below one by one in ubuntu terminal-

1. Remove the lock file

sudo rm /var/lib/dpkg/lock

2. Reconfigure packages.

sudo dpkg --configure -a

3. Delete lock files.

sudo rm /var/lib/apt/lists/lock

4. Delete cathe files

sudo rm /var/cache/apt/archives/lock

5. Update package resources.

sudo apt-get update



No comments:

Popular Posts

Powered by Blogger.