Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

On a new EC2 Lucid AMI, I've tried:

$ locate

And got:

locate: can not stat () `/var/lib/mlocate/mlocate.db': No such file or directory

I've created the locate database using updatedb, and it works fine.

Do I need to put updatedb in some cron file?

Is it invoked automatically? If not, what would be a reasonable interval?

share|improve this question
up vote 2 down vote accepted

Your guess is correct - it is invoked automatically. Usually daily. From here

share|improve this answer
Thanks, just found it on /etc/cron.daily – Adam Matan Jul 19 '11 at 10:35

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.