[root@vps etc]# locate courier
locate: can not open `/var/lib/mlocate/mlocate.db': No such file or directory
OK, so the mlocate.db file doesn’t exist, marvellous. How do we either find it or create it?
Answer: simply run updatedb
[root@vps etc]# updatedb
Now we can do our search:
[root@vps etc]# locate courier
/etc/profile.d/courier-imap.csh
/etc/profile.d/courier-imap.sh
/etc/rc.d/init.d/courier-authlib
/etc/rc.d/init.d/courier-imap
/etc/rc.d/rc0.d/K30courier-imap
/etc/rc.d/rc0.d/K85courier-authlib
/etc/rc.d/rc1.d/K30courier-imap
REFERENCES
http://community.singlehop.com/community-tutorials/126-fix-locate-can-not-open-%60-var-lib-mlocate-mlocate-db%92-no-such-file-directory.html
Monday, August 13, 2012
Fix locate: can not open `/var/lib/mlocate/mlocate.db’: No such file or directory
Category:
Linux
— SkyHi @ Monday, August 13, 2012