Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 01-26-2013, 11:07 AM   #1
Registered: Nov 2011
Location: Muskego, WI
Posts: 39

Rep: Reputation: 0
Question Lock directory does not exist?

Hey guys, in running Raspbian Wheezy on my Raspberry Pi, and every time I go to install something, it says that /var/lib/dpkg/lock does not exist, and that it cannot lock the administration directory.

How should I go about fixing this? Any help is appreciated.
Old 01-26-2013, 11:31 AM   #2
Dutch Master
Senior Member
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
There is no such thing as a lock directory, only lock files. These are placed inside the working directory of the application. I'm not sure an ordinary user can fix this (might be a bug upstream somewhere) but you can create the file (as root!) with
touch /var/lib/dpkg/lock


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
Directory does not exist. blck_kenzo Linux - Newbie 2 10-18-2010 02:07 AM
how to check directory exist or not nagendrar Solaris / OpenSolaris 1 04-30-2010 02:06 AM
Home directory does not exist emibee Linux - Laptop and Netbook 8 03-17-2009 03:20 PM
Home Directory Does not exist PLEASE HELP scdemon Ubuntu 2 02-10-2007 04:32 PM
apache directory does not exist Smokey Slackware 5 08-25-2004 08:06 AM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 06:08 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration