No slocate.db file. Can't updatedb
I use slackware 10.2
Few days ago I wanted to run updatedb. Here's what I got... Code:
#updatedb |
You can recreate it with: touch /var/lib/slocate/slocate.db
|
As root enter the following,
touch /var/lib/slocate/slocate.db This creates the new file "slocate.db", (Note: touch can be used to update a file's last accessed date or in this case to create a new empty file). Now you can run "updatedb" (also as root) |
Sure you need to do that? I got that warning after a fresh install not long ago but notice, it's a warning, not an error. It created the file and went on to build the database by itself.
|
Use, updatedb -c /etc/updatedb.conf, instead of plain updatedb.
|
thanks
On my system, locatedb failed after upgrading to my distro's latest revision (Kubuntu Dapper).
Thanks for the tips! For me these 2 things (from different sections of this thread) fixed the issue. sudo touch /var/lib/slocate/slocate.db sudo updatedb -c /etc/updatedb.conf |
Quote:
Never doubt the power of Slackware.....lol |
In my experience running
Code:
slocate -u |
Quote:
That also creates the db.... |
Tnx, I did these:
Code:
touch /var/lib/slocate/slocate.db the difference with plain updatedb? |
The '-c' creates the database.
Type Code:
man updatedb |
All times are GMT -5. The time now is 02:06 AM. |