Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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

Any clue what's up with this?

djc@miles rebar $ sudo updatedb
djc@miles rebar $ locate .dialyzer_plt
locate: can not stat () `/var/lib/mlocate/mlocate.db': No such file or directory
djc@miles rebar $ sudo su -l
miles ~ # cd /var/lib/mlocate/
miles mlocate # ls -l
total 51576
-rw------- 1 root root  6553600 Oct  1 03:13 mlocate.db.AkeorG
-rw------- 1 root root  6635520 Oct  3 03:14 mlocate.db.EY0KT9
-rw------- 1 root root  6639616 Oct  4 10:34 mlocate.db.EiWVGW
-rw------- 1 root root  6230016 Sep 30 03:14 mlocate.db.Shbi49
-rw------- 1 root root 13447168 Sep 29 14:40 mlocate.db.VAo6El
-rw------- 1 root root  6668288 Oct  4 03:12 mlocate.db.gTyzDl
-rw------- 1 root root  6635520 Oct  2 03:12 mlocate.db.o0nXlW
share|improve this question
You could try running updatedb -v for some more verbose output. – Jim Paris Oct 4 '12 at 14:50
s/sudo su -l/sudo -i/g – derobert Oct 4 '12 at 21:27
a dirty fix is do a mv manually – warl0ck Oct 26 '12 at 0:44

When mlocate finish the updatedb, write the final file with the user root and other group. Verify the permissions in the directory "mlocate":

drwxr-x--- 2 root slocate 4096 Oct 25 18:02 mlocate
share|improve this answer
If he don't have the permission to write files here..how could these temp files occur? – warl0ck Oct 26 '12 at 0:45

Try reinstalling the mlocate package. It looks like you might have some corruption

share|improve this answer

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.