updatedb doesn't update

NoOp glgxg at sbcglobal.net
Tue Oct 5 22:40:28 UTC 2010


On 10/05/2010 02:55 PM, Peng Yu wrote:
> Hi,
> 
> man updatedb says "updatedb is usually run daily by cron(8) to update
> the default database". But the updatedb on my ubuntu seems not
> updating at all.
> 
> locate: warning: database `/var/cache/locate/locatedb' is more than 8 days old
> 
> Should I set up a cron job to let updatedb run regularly? Or there
> should some other solutions?
> 

Check your /etc/updatedb.conf file to see if it's screwed up. Here's
mine for reference:

$ cat /etc/updatedb.conf
PRUNE_BIND_MOUNTS="yes"
# PRUNENAMES=".git .bzr .hg .svn"
PRUNEPATHS="/tmp /var/spool /media"
PRUNEFS="NFS nfs nfs4 rpc_pipefs afs binfmt_misc proc smbfs autofs
iso9660 ncpfs coda devpts ftpfs devfs mfs shfs sysfs cifs lustre_lite
tmpfs usbfs udf fuse.glusterfs fuse.sshfs ecryptfs fusesmb devtmpfs"

Also try to invoke manually to see if perhaps the bin file is OK:

$ sudo updatedb

If that last doesn't work, then you may need to purge and reinstall.






More information about the ubuntu-users mailing list