LinuxQuestions.org
Visit Jeremy's Blog.
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 08-27-2008, 02:06 PM   #1
BallsOfSteel
Member
 
Registered: Mar 2008
Location: Florida
Distribution: Fedora mainly, but I am open to others.
Posts: 273

Rep: Reputation: 33
locate: can not open `/var/lib/mlocate/mlocate.db': No such file or directory


I'm trying to use locate to find a file, and it says that it cannot find locate. Any idea why? Fresh install, never had this happen before.

Thanks,

Brandon
 
Old 08-27-2008, 03:24 PM   #2
Fantasio
Member
 
Registered: Nov 2007
Location: Vinsobres - Drome - France
Distribution: SuSE Linux 11.3
Posts: 148

Rep: Reputation: 18
did you make an updatedb before ?
 
Old 08-27-2008, 04:12 PM   #3
BallsOfSteel
Member
 
Registered: Mar 2008
Location: Florida
Distribution: Fedora mainly, but I am open to others.
Posts: 273

Original Poster
Rep: Reputation: 33
I never made an updatedb, and I'm not sure what that is. I reinstalled, updated immediately and then tried to use the command and it doesn't function. Please advise further.

Thanks,

Brandon
 
Old 08-27-2008, 04:17 PM   #4
BallsOfSteel
Member
 
Registered: Mar 2008
Location: Florida
Distribution: Fedora mainly, but I am open to others.
Posts: 273

Original Poster
Rep: Reputation: 33
Ah... I had to run
Code:
sudo updatedb
Then it worked just fine. Thanks for the help.

Solved!
 
Old 12-11-2010, 08:30 AM   #5
elhossiny
LQ Newbie
 
Registered: Dec 2010
Posts: 1

Rep: Reputation: 0
locate: can not open `/var/lib/mlocate/mlocate.db': No such file or directory

thanks a lot the problem is resolved
 
  


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
Unable to lock the administration directory (/var/lib/dpkg/) cccc Debian 10 11-15-2011 10:51 PM
Files in /var/lib/dpkg directory kushalkoolwal Debian 3 05-04-2007 02:05 PM
audacity unable to locate required lib files present in /usr/lib/ adityavpratap Slackware 4 11-30-2006 06:06 AM
Gentoo: /var/lib/portage/world File Question unreal128 Linux - Distributions 6 09-27-2006 06:28 PM
error message: /var/lib/locate/locatedb: retiqlum Debian 5 01-12-2005 01:32 AM


All times are GMT -5. The time now is 08:44 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration