Bug#1028142: dlocate: cannot find recent files - obsolete database?
On 2023-01-07 18:53 +0100, Vincent Lefevre wrote:
> Package: dlocate
> Version: 1.12
> Severity: grave
> Justification: renders package unusable
>
> dlocate cannot find recent files, so it is mostly useless.
>
> I suspect that since the upgrade to dlocate 1.12 on 2022-11-25,
> its database is no longer updated:
>
> zira:~> ll /var/lib/dlocate
> total 109172
> -rw-r--r-- 1 root root 55750318 2022-11-25 00:27:44 dlocatedb
> -rw-r--r-- 1 root root 55623054 2022-11-14 09:47:51 dlocatedb.old
> -rw-r--r-- 1 root root 105318 2022-11-25 00:27:44 dlocatedb.stamps
> -rw-r--r-- 1 root root 299199 2022-11-25 00:27:44 dpkg-list
That could have been the case for much longer actually. At installation
time, the postinst script runs "update-dlocatedb -b" which seems to have
been successful.
> The cron file /etc/cron.daily/dlocate is there, though:
>
> #!/bin/sh
>
> # update databases for both files and packages.
> if [ -x /usr/sbin/update-dlocatedb ] ; then
> /usr/sbin/update-dlocatedb -b
> fi
But apparently it is never executed. Are any other cron jobs being run
on your system? If not, you may have been bitten by bug #1019554 in
anacron which needs manual restore as mentioned in
https://lists.debian.org/debian-devel-announce/2022/11/msg00001.html.
Cheers,
Sven
Reply to: