How to fix: locate: can not open `/var/lib/mlocate/mlocate.db’: No such file or directory
August 12, 2011 at 11:45 am Leave a comment
You got the message “locate: can not open `/var/lib/mlocate/mlocate.db’: No such file or directory” when using locate command ?
To fix it just simply use updatedb command.
For example:
[root@xyz ]# locate lan.vu
[root@xyz ]# locate: can not open `/var/lib/mlocate/mlocate.db’: No such file or directory
[root@xyz ]# updatedb
[root@xyz ]# locate lan.vu
/home/lan.vu
Entry filed under: Linux. Tags: How to fix: locate: can not open `/var/lib/mlocate/mlocate.db’: No such file or directory.
Trackback this post | Subscribe to the comments via RSS Feed