LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 06-23-2011, 03:20 PM   #1
Foremost
LQ Newbie
 
Registered: Aug 2010
Posts: 4

Rep: Reputation: Disabled
problems with Installing programs on Ubuntu 10.04 server


Hello everyone,
May I know how to handle a problem like this;
While installing eucalyptus cloud on ubuntu server,
I encounter an error message on the command line that says:

"E: Could not get lock /var/cache/apt/archives/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/cache/apt/archives/".

this is just the last 3 lines of the whole error string. And eventually, everything got stacked & frozen. Please, what should I do next to keep going on as I can't move any further from here.

Thanks in advance.

Last edited by Foremost; 06-23-2011 at 03:22 PM.
 
Old 06-23-2011, 03:48 PM   #2
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 476Reputation: 476Reputation: 476Reputation: 476Reputation: 476
@ Reply

Hi there,

It might be possible that another application is accessing that file and that the reason when you type apt-get install you get that error message. Things to check:

1. Check whether another application is using apt? Type: ps -eaf | grep apt
2. Make sure you are running this as root. If not, then type sudo apt-get install
 
Old 06-23-2011, 03:57 PM   #3
spwnt
Member
 
Registered: Jun 2006
Distribution: Linux Mint/Debian/Arch
Posts: 78

Rep: Reputation: 12
First try rebooting.

Then you can try this..(note this is probably NOT what you are supposed to do EVER.) This can break apt(and has before)... but this is what I do. and before you type this command you should wait for someone else to explain the possible problems from doing this.

i check and make absolute sure nothing is using apt. (another terminal window, synaptic, ubuntu software center) and then if it still says that.

Code:
$ rm /var/cache/apt/archives/lock
most of the time it fixes the problem without anything detrimental as far as I can tell (AS LONG AS YOU MAKE ABSOLUTE SURE NOTHING ELSE IS USING APT). It could have been caused by accidentally closing a terminal while it was installing something or something.

Last edited by spwnt; 06-23-2011 at 03:59 PM. Reason: adding warnings
 
  


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
Problems installing postgresql server on ubuntu rsciw Ubuntu 4 09-20-2009 09:33 AM
Installing programs in Ubuntu bipolar420 Linux - Newbie 4 01-05-2009 02:47 AM
Installing .bin programs in Ubuntu GaryBrune Linux - Software 5 08-27-2007 01:13 AM
installing programs in Ubuntu apache119 Linux - Newbie 3 03-18-2005 10:35 AM


All times are GMT -5. The time now is 04:56 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration