Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-29-2011, 08:35 AM   #16
Registered: Jun 2006
Distribution: Linux Mint/Debian/Arch
Posts: 78

Rep: Reputation: 12

when you close it prematurely the lock file stays there. it puts a lock on the program so that you don't run more than one instance of it at the same time. you have to remove the lock file.
Old 02-15-2012, 01:28 PM   #17
LQ Newbie
Registered: Feb 2012
Posts: 1

Rep: Reputation: Disabled
An easy way of deleting the lock file is to open nautilus (the file browser) in root (gksudo nautilus), click on file system then navigate through the folders var/lib/dpkg.

Inside the folder dpkg should be a file called 'lock'. Send it to the rubbish bin. Problem solved.
Old 07-12-2016, 03:50 AM   #18
LQ Newbie
Registered: Jul 2016
Posts: 1

Rep: Reputation: Disabled
I had the same issue:

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

I tried searching for processes that were using it as advised in an earlier post by doing:

ps aux | grep apt
ps aux | grep ftp
Neither of those revealed the culprit.

I then noticed that I had Synaptic Package Manager open. Once I closed that and attempted sudo apt-get update it completed successfully.

Hopefully this helps!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
warning: cannot get exclusive lock on /var/lib/rpm/Packages Raafi Fedora 3 03-06-2005 04:45 AM
error: cannot get exclusive lock on /var/lib/rpm/Packages orly Linux - Software 2 09-06-2004 08:13 AM
error:cannot get exclusive lock on /var/lib/rmp/packages mateka Linux - Newbie 1 06-26-2004 11:07 PM
error: cannot get exclusive lock on /var/lib/rpm/Packages error: cannot open Packages inward_eye Linux - Software 3 08-24-2003 04:07 PM
SIOCSIFFLAGS: Resource temporarily unavailable bleef Linux - Networking 2 05-14-2001 11:54 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:48 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration