Sample Header Ad - 728x90

locate in cron.daily not updating database

3 votes
2 answers
364 views
On a standard desktop installation of Ubuntu 24.04, when I try to use the locate command, searches for files that I clearly have in my home directory do not show up -- it appears as if the locate database has never been updated. However, I can run sudo updatedb, which manually updates the locate database, and I can then search for files as expected. This continues to work for a day, after which searches for files in my home directory no longer work again. So my assumption is that after the locate script in cron.daily runs, the database is altered or erased. One solution would be to just remove the locate script from cron.daily, which I think would "solve" the problem. But is there a more proper way to handle this?
Asked by Madeleine P. Vincent (131 rep)
May 11, 2024, 09:22 AM
Last activity: Mar 15, 2025, 01:12 AM