DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 963,503 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
Stack All Flow
Stack All Flow

Posted on • Originally published at stackallflow.com on

Unable to lock the administration directory (/var/lib/dpkg/) is another process using it

aptdpkgpackage-management

I get this error when trying to use apt-get:

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

Enter fullscreen mode Exit fullscreen mode

How can I fix this?

Accepted Answer

This should be used as last resort. If you use this carelessly you can end up with a broken system. Please try the other answers first before doing this.

You can delete the lock file with the following command:

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

Enter fullscreen mode Exit fullscreen mode

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

Enter fullscreen mode Exit fullscreen mode

After that, try opening Synaptic again.

The post Unable to lock the administration directory (/var/lib/dpkg/) is another process using it appeared first on Stack All Flow.

Top comments (0)

DEV has this feature:

Settings

Go to your customization settings to nudge your home feed to show content more relevant to your developer experience level. πŸ›