LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 10-29-2011, 12:29 AM   #1
Fennippee
LQ Newbie
 
Registered: Sep 2011
Location: Arizona, USA
Distribution: Ubuntu 11.10
Posts: 2

Rep: Reputation: Disabled
Angry Is dpkg/lock working differently in Oneiric? It didn't behave this way before


Hello all -- I am making a complete transition to Linux after deciding that I really hate Windows. To that end, I have been using Ubuntu. I started out with Natty and moved to Oneiric a few days ago. I am experiencing an issue in Oneiric that I did not ever experience in Natty.

It happens when I try to have more than one sudo command running at once -- anything at all that requires sudo, NOT just installing or downloading packages. I get the pair of error messages that says:

Code:
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?
So I am only able to have one sudoed command running at once. To run another one, no matter what it is, I have to kill the other. This issue is NOT associated with frozen processes. Now, I know this never happened to me in Natty, and it is noticeably a pain in the neck in Oneiric. I need to be able to run more than one sudoed command at a time.

Does anyone know why this is happening and how I can fix it?
 
Old 10-29-2011, 12:50 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
I assume you mean running a root command in two separate terminal sessions simultaneously. The error indicates that both commands want to use the package system. If so, do one thing at once. If not, perhaps you have a stale lock or a process running in the background accessing the package system (such as an automatic system checking for updates).

You could use lsof to see if another process is accessing /var/lib/dpkg/lock.

I'll leave the details of Unbuntu's package system to other Ubuntu users who can better help in that area than I can. My version of this problem in KDE is when "kpackagekitsmarticon" has a lock on the rpm database and I can't use zypper.
 
  


Reply

Tags
dpkg, lock, sudo, sudoes, ubuntu.



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
E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable) phreakshew Linux - Newbie 24 04-12-2019 10:42 AM
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
Make mysql order by to behave differently raven Linux - Server 2 11-30-2007 03:33 AM
Could not get lock /var/lib/dpkg/lock thelonius Debian 5 07-31-2006 07:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:05 AM.

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
Open Source Consulting | Domain Registration