LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-22-2007, 03:56 PM   #1
wgato
Member
 
Registered: Jun 2006
Distribution: ubuntu slax dsl
Posts: 40

Rep: Reputation: 15
apt-get locked


Hello -

When I try to use apt-get install I get the following error:

E: Could not open lock file /var/lib/dpkg/lock - open (@ No suck file or directory)

E: Unable to lock the adminstration directory (/var/lib/dpkg), are you root?


I get this error when I try apt-get with sudo and when I am the root user.
this site
http://www.debian.org/doc/manuals/ap...t-howto.en.txt
seems to imply that I could be running 2 copies of apt to get this error. I dont know how that would happen though or how I could confirm it.


Can anyone help?

thank you
 
Old 01-22-2007, 04:15 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Try ps aux |grep apt (or grep dpkg) and see how many processes come up. You can also try lsof |grep dpkg and see what process is using the file (and then kill it).
 
Old 01-23-2007, 08:26 AM   #3
wgato
Member
 
Registered: Jun 2006
Distribution: ubuntu slax dsl
Posts: 40

Original Poster
Rep: Reputation: 15
thanks for the suggestion pljvaldez.

nothing seems to be using apt or dpkg tho...

Last edited by wgato; 01-23-2007 at 10:58 AM.
 
  


Reply



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
Synaptic and Apt-get Locked Ray2047 Debian 13 09-12-2022 09:39 AM
APT = Locked? carlosinfl Debian 5 05-09-2006 03:53 PM
apt-get update errors since Debian released ( bad /etc/apt/sources.list ?) forgox Debian 10 06-13-2005 12:28 PM
knoppix 3.4 and no apt-setup how to fix info install apt-file + base-config maximalred Debian 0 10-16-2004 06:36 PM
rh9 xd2 apt apt-get problem fix and solution transeunt Red Hat 0 12-16-2003 10:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:18 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