今天遇到一个这样的问题:

[root@db1 /]# locate defaults.conf

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

解决的办法:

更新数据库:

[root@db1 /]# updatedb

[root@db1 /]# less $(locate defaults.conf)
# GDM Configuration file.
#
# This file should not be updated by hand.  Since GDM 2.13.0.4,。。。。。。。