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 10-02-2003, 09:53 PM   #1
Abe_the_Man
Member
 
Registered: Jul 2003
Location: Oshawa, Ontario, Canada
Distribution: ?????
Posts: 324

Rep: Reputation: 30
locate problems


when i type the command locate i get an error. Here's an example:

root@Silver_jet:~# locate zangband
warning: locate: could not open database: /var/lib/slocate/slocate.db: No such file or directory
root@Silver_jet:~#

what's the problem?? Zangband installed (i just finished installing it).
 
Old 10-02-2003, 10:08 PM   #2
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Rep: Reputation: 46
run updatedb first as root.

Cool... my 700th post :P

Last edited by Azmeen; 10-02-2003 at 10:09 PM.
 
Old 10-02-2003, 10:11 PM   #3
canon
Member
 
Registered: Feb 2003
Location: Seattle & N.Ireland
Distribution: Suse 9.current
Posts: 40

Rep: Reputation: 15
of you can try
you@box# whereis Zangband
 
Old 10-03-2003, 12:24 AM   #4
Abe_the_Man
Member
 
Registered: Jul 2003
Location: Oshawa, Ontario, Canada
Distribution: ?????
Posts: 324

Original Poster
Rep: Reputation: 30
Well Azmeen i tried updatedb but got this error:

root@Silver_jet:~# updatedb
warning: updatedb: could not open database: /var/lib/slocate/slocate.db: No such file or directory

And canon, i tried whereis and it worked! Thanks alot! But i'd be much more comfortable if i knew why locate wasn't working. Any ideas anyone?
 
Old 10-03-2003, 01:44 AM   #5
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Rep: Reputation: 46
Abe... that is normal... it will always show that the first time you run updatedb on a virgin system. Your consequential updatedb won't return such messages.

Your locate whatever will work from now on.
 
Old 10-03-2003, 10:58 AM   #6
Abe_the_Man
Member
 
Registered: Jul 2003
Location: Oshawa, Ontario, Canada
Distribution: ?????
Posts: 324

Original Poster
Rep: Reputation: 30
Thanks loads Azmeen! Just made me feel a WHOLE lot better! (my system isn't broken, and i'm not huge idiot who ruined his sytem within hours!)
 
Old 10-03-2003, 07:35 PM   #7
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Rep: Reputation: 46
No prob Abe... Slack is hard to break anyway, unless you work in root unnecassarily
 
Old 02-23-2004, 06:25 PM   #8
mindfrost82
Member
 
Registered: Apr 2003
Distribution: Slackware
Posts: 60

Rep: Reputation: 15
I'm getting the same error. I tried updatedb and it gave me the same error, and I tried locate again and it didn't work, same error. Any suggestions?
 
Old 02-24-2004, 07:31 PM   #9
mindfrost82
Member
 
Registered: Apr 2003
Distribution: Slackware
Posts: 60

Rep: Reputation: 15
I figured it out. As root run "locate -u" to build the database start at the / directory and all subdirectories.
 
  


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 with 'locate' in bash Ariox Slackware 16 08-24-2005 11:53 PM
Problems with swaret, can't locate packages huf Linux - Software 8 06-28-2004 08:31 AM
A few annoying problems; Cannot locate theme & "No DFP detected". Ninja Cow Slackware 0 04-29-2004 12:01 AM
Problems with mouse in Mandrake 9.1, modprobe: can't locate module serial jarkor Linux - Hardware 3 07-14-2003 12:04 PM
problems with mouse in Mandrake 9.1, modprobe: can't locate module serial jarkor Linux - Newbie 0 07-10-2003 09:49 PM


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

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