updatedb doesn't update
NoOp
glgxg at sbcglobal.net
Mon Nov 1 15:57:14 UTC 2010
On 10/31/2010 03:04 PM, Peng Yu wrote:
> On Mon, Oct 18, 2010 at 2:20 PM, NoOp <glgxg at sbcglobal.net> wrote:
>> On 10/18/2010 11:50 AM, Peng Yu wrote:
>> ...
>>> I reinstalled mlocate. Now I have /etc/updatedb.conf. Are there
...
> I still see the following error. Do you know how to fix it?
>
> $ locate something
> locate: can not open `/var/lib/mlocate/mlocate.db': No such file or directory
>
> My ubuntu system can not be updated to the latest one. Could this be
> the reason why mlocate is not working?
>
> $ cat /etc/lsb-release
> DISTRIB_ID=Ubuntu
> DISTRIB_RELEASE=8.04
> DISTRIB_CODENAME=hardy
> DISTRIB_DESCRIPTION="Ubuntu 8.04.4 LTS"
Lucid:
gl at gl:~$ locate mlocate.db
/usr/share/man/man5/mlocate.db.5.gz
/var/lib/mlocate/mlocate.db
/var/lib/mlocate/mlocate.db.T3Ww9g
gl at gl:~$ ls -al /var/lib/mlocate/
total 13692
drwxr-xr-x 2 root root 4096 2010-11-01 07:46 .
drwxr-xr-x 107 root root 4096 2010-10-15 19:26 ..
-rw-r----- 1 root mlocate 14008754 2010-11-01 07:46 mlocate.db
gl at gl:~$ cd /var/lib/mlocate/
gl at gl:/var/lib/mlocate$ ls
mlocate.db
$ ls -al /usr/bin/locate
lrwxrwxrwx 1 root root 24 2008-08-26 20:06 /usr/bin/locate ->
/etc/alternatives/locate
I'll boot an 8.04 machine later this morning & check, but should be the
same. On that machine I can also purge mlocate & reinstall to test to
see if the mlocate.db is generated properly.
However, also see:
https://launchpad.net/ubuntu/+source/mlocate/+bugs
Maybe related?:
https://bugs.launchpad.net/ubuntu/+source/mlocate/+bug/281471
More information about the ubuntu-users
mailing list