Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today! Win Great Prizes!
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Debian Linux Help > apt-get problem

Forgot Password?
 Debian Linux Help   Discussions related to Debian GNU/Linux.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 11-03-2005   #1 (permalink)
Just Joined!
 
Join Date: Oct 2005
Posts: 7
apt-get problem

When I try to install programs using ap-get install I got this error message:

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?

Anyone knows whereis the problem?
bobbysampa is offline  



Reply With Quote
Old 11-03-2005   #2 (permalink)
Linux Guru
 
antidrugue's Avatar
 
Join Date: Oct 2005
Location: Montreal, Canada
Posts: 3,213
You got to be root when using apt-get, that's all.

So either,
Code:
su
to become root, or use

Code:
sudo apt-get install whateverpackage
__________________
"To express yourself in freedom, you must die to everything of yesterday. From the 'old', you derive security; from the 'new', you gain the flow."

-Bruce Lee
antidrugue is offline   Reply With Quote
Old 11-03-2005   #3 (permalink)
Just Joined!
 
Join Date: Oct 2005
Posts: 7
Even as a root i got the same message. Maybe its something simple, but since i am a newbie in Linux I dont know how to fix it.
bobbysampa is offline   Reply With Quote
Old 11-03-2005   #4 (permalink)
Just Joined!
 
Join Date: Oct 2005
Posts: 7
Even as a root i got the same message. Maybe its something simple, but since i am a newbie in Linux I dont know how to fix it.
bobbysampa is offline   Reply With Quote
Old 11-03-2005   #5 (permalink)
Just Joined!
 
Join Date: Nov 2004
Posts: 8
I get a message something like that when I am also running Adept (graphical package manager) at the same time i try to run apt-get. See if that's running an close it. That fixes the problem for me and everything goes as normal.
sfam198 is offline   Reply With Quote
Old 11-03-2005   #6 (permalink)
Linux Guru
 
bryansmith's Avatar
 
Join Date: Nov 2004
Location: /Ontario/Canada
Posts: 2,622
It does sound that something is using apt at the same time like sfam198 suggested. Are you running apt somewhere else? Are you running Synaptic or Adept at the same time as trying to run apt from the command line?

Bryan
__________________
Looking for a distro? Look here.
"There can be no doubt that all our knowledge begins with experience." - Immanuel Kant (Critique of Pure Reason)
Queen's University - Arts and Science 2008 (Sociology)
Registered Linux User #386147.
bryansmith is offline   Reply With Quote
Old 11-03-2005   #7 (permalink)
Linux Guru
 
Vergil83's Avatar
 
Join Date: Mar 2004
Posts: 2,408
I will third sfam198 on the question if you have something else running. I have only ever seen that message when another program is trying to use apt.
__________________
Brilliant Mediocrity - Making Failure Look Good
Vergil83 is offline   Reply With Quote
Old 11-07-2005   #8 (permalink)
Just Joined!
 
Join Date: Nov 2005
Location: UK
Posts: 5
apt-get in use

Hi there, sfam198 is correct.
Lets say for example I've got Synaptic running installing Gaim (or just open).
If i'm root in another terminal and try "apt-get install firefox", then I'll get an error. Remember the GUI Synaptic has to use apt-get as well. The system does not allow 2 sessions of the program to b e in use at once..
hope that helps
dduck is offline   Reply With Quote
Old 12-22-2006   #9 (permalink)
Just Joined!
 
Join Date: Dec 2006
Posts: 2
Same Problem, need Help!

I have use Linux for less than 24hrs...I have the same problem, but I don't know how to "turn off" the adept...is not obvious that is running, at least I cannot see it open....
thanks for the help
donka is offline   Reply With Quote
Old 12-22-2006   #10 (permalink)
Just Joined!
 
Join Date: Jul 2004
Location: Panama
Posts: 20
APT-HOWTO
http://www.us.debian.org/doc/manuals...s-erros-comuns
Section 7.1
How to deal with errors

************************************************** **********************************
Excerpt:

7.1 Common errors

Errors will always happen, many of them caused by users not paying attention. The following is a list of some of the most frequently reported errors and how to deal with them.

If you receive a message that looks like the one below when trying to run apt-get install package...

Reading Package Lists... Done
Building Dependency Tree... Done
W: Couldn't stat source package list 'http://people.debian.org unstable/ Packages' (/var/state/apt/lists/people.debian.org_%7ekov_debian_unstable_Packages) - stat (2 No such file or directory)
W: You may want to run apt-get update to correct these missing files
E: Couldn't find package penguineyes

you forgot to run apt-get update after your last change to the /etc/apt/sources.list file.

If the error looked like:

E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

when trying any apt-get method other than source, you don't have root permission, that is, you're running as a normal user.

There's an error similar to the above which happens when you run two copies of apt-get at the same time, or even if you try to run apt-get while a dpkg process is active. The only method that can be used simultaneously with others is the source method.

If an installation breaks in the middle of the process and you find that it's no longer possible to install or remove packages, try running these two commands:

# apt-get -f install
# dpkg --configure -a

And then try again. It may be necessary to run the second of the above commands more than once. This is an important lesson for those adventurers who use `unstable'.

If you receive the error "E: Dynamic MMap ran out of room" when running apt-get update, add the following line to /etc/apt/apt.conf:

APT::Cache-Limit 10000000;

************************************************** *************

For those of you who think you can waltz thru Debian without RTFM, you are sadly mistaken. IMHO, the advantage of using Debian is 'apt-get', if you don't know how to use it, you will be in a heap of trouble, it only takes 10 minutes to read.

Otherwise, you will be making asinine questions that can be resolved in a jiffy. Get with the program! Months from now, you will see that clichés such as RTFM, and "Google is your friend" are very true.

Peace,
macondo is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
A Newbie's Getting Started Guide to Linux
Learn the basics of the Linux operating systems. Get to know what it is all about, and familiarize yourself with the practical side. Basically, if you're a complete Linux newbie and looking for a quick and easy guide to get you started this is it.
subscribe
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 11:45 AM.






© 2000 - - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.1