updatedb doesn't update

Peng Yu pengyu.ut at gmail.com
Sun Oct 17 22:09:02 UTC 2010


On Tue, Oct 5, 2010 at 5:40 PM, NoOp <glgxg at sbcglobal.net> wrote:
> 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"

I don't see the file '/etc/updatedb.conf' on my system. Shall I just
copy your file to my system. Or there is any tool that I should use to
generate such a file on my system.

> Also try to invoke manually to see if perhaps the bin file is OK:
>
> $ sudo updatedb

The command updatedb works.

-- 
Regards,
Peng




More information about the ubuntu-users mailing list