LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 07-29-2011, 08:35 AM   #16
spwnt
Member
 
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
jhcr
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
Fnatical
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:

Code:
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!
 
  


Reply


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


All times are GMT -5. The time now is 02:05 PM.

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