You are not logged in.
Pages: 1
Topic closed
Whenever I try to use the 'locate' command it gives this error:
locate: can not stat () `/var/lib/mlocate/mlocate.db': No such file or directory
I checked pacman and i downloaded mlocate but it doesn't seem to make any difference. What am I doing wrong?
Last edited by quepp42 (2009-09-17 05:13:07)
Offline
Try updating (possibly creating in your case) the database. "updatedb" as root.
Offline
run updatedb first. You can run it manually from the command line.
It should have scheduled itself as a cron job when you installed slocate. If you just installed slocate, it will not have run yet. Otherwise, make sure you have a cron daemon running and that there is an updatedb task scheduled. Also, make sure your computer is on when it it is scheduled
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
thanks homies, it worked ^_^
Offline
thx, this post solved my problem too
Offline
loveqq1943, do not necro-bump threads with empty posts.
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
Pages: 1
Topic closed