LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 09-24-2013, 01:02 PM   #1
MooseMagnet
Member
 
Registered: Oct 2007
Location: U.S.
Distribution: Ubuntu Lucid Lynx 10.04
Posts: 168
Blog Entries: 1

Rep: Reputation: 15
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable


After the last software update I've been getting this:

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?

Can't run apt-get, synaptic package manager, or any other. Have read and tried some solutions, but they don't do anything. Running Ubuntu 12.04.

Anyone else? Or anyone know how to fix this?

Thanks.
 
Old 09-24-2013, 07:54 PM   #2
MooseMagnet
Member
 
Registered: Oct 2007
Location: U.S.
Distribution: Ubuntu Lucid Lynx 10.04
Posts: 168
Blog Entries: 1

Original Poster
Rep: Reputation: 15
This seems to have fixed it....

mkdir ~/beckupVarLib
sudo mv /var/lib/apt/lists/* ~/beckupVarLib
sudo apt-get update
 
Old 09-25-2013, 12:26 AM   #3
eklavya
Member
 
Registered: Mar 2013
Posts: 551

Rep: Reputation: 113Reputation: 113
If you are getting this
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

It means you are trying to get packages from multiple sources.
Are you trying to run synaptic package manager, ubuntu software center, software updater and commands like (apt-get update or apt-get upgrade or apt-get install package_name)
You can't run two sources simultaneously. You have to close all other and run only one.
The process locks the apt and if you pause the process (send it in background), it gives you dpkg lock error.

Either you need to kill one process completely or you have to delete the lock file which is in /var/lib/dpkg/lock & /var/cache/apt/archives/lock
 
1 members found this post helpful.
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable) Mind Hunter Linux - Newbie 1 02-17-2012 04:19 PM
E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable) phreakshew Linux - Newbie 16 02-15-2012 12:28 PM
Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied) basina Linux - Laptop and Netbook 3 09-05-2011 05:18 PM
could not get lock /var/lib/dpkg/ netstat Debian 1 09-08-2008 08:52 PM
Could not get lock /var/lib/dpkg/lock thelonius Debian 5 07-31-2006 07:48 PM


All times are GMT -5. The time now is 10:18 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration