Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
05-15-2006, 01:02 AM
|
#1
|
Member
Registered: Aug 2004
Distribution: opensuse ,debian/ubuntu
Posts: 222
Rep:
|
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
warning: updatedb: could not open database: /var/lib/slocate/slocate.db: No such file or directory
What's the solution?
|
|
|
05-15-2006, 01:39 AM
|
#2
|
Senior Member
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145
Rep:
|
You can recreate it with: touch /var/lib/slocate/slocate.db
Last edited by gbonvehi; 05-15-2006 at 01:42 AM.
|
|
|
05-15-2006, 01:40 AM
|
#3
|
LQ Newbie
Registered: Apr 2006
Location: Australia
Distribution: Slackware
Posts: 20
Rep:
|
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)
|
|
|
05-15-2006, 03:00 AM
|
#4
|
Senior Member
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545
Rep:
|
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.
|
|
|
05-15-2006, 04:46 AM
|
#5
|
Member
Registered: Nov 2005
Location: Budapest, Hungary
Distribution: Slackware, Gentoo
Posts: 346
Rep:
|
Use, updatedb -c /etc/updatedb.conf, instead of plain updatedb.
|
|
|
06-04-2006, 10:37 PM
|
#6
|
LQ Newbie
Registered: Jul 2005
Location: california, usa
Distribution: kubuntu
Posts: 6
Rep:
|
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
|
|
|
06-04-2006, 10:53 PM
|
#7
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Rep:
|
Quote:
Originally Posted by mpm
On my system, locatedb failed after upgrading to my distro's latest revision (Kubuntu Dapper).
|
Another distro fixed by Slackers.
Never doubt the power of Slackware.....lol
|
|
|
06-04-2006, 11:54 PM
|
#8
|
Member
Registered: Aug 2005
Location: Guadalajara, Jal, Mexico
Distribution: Slackware Linux
Posts: 211
Rep:
|
In my experience running always works, even if there's no slocate.db database.
|
|
|
06-04-2006, 11:59 PM
|
#9
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Rep:
|
Quote:
Originally Posted by theoffset
In my experience running always works, even if there's no slocate.db database.
|
lol
That also creates the db....
|
|
|
06-05-2006, 01:57 AM
|
#10
|
Member
Registered: Aug 2004
Distribution: opensuse ,debian/ubuntu
Posts: 222
Original Poster
Rep:
|
Tnx, I did these:
Code:
touch /var/lib/slocate/slocate.db
updatedb -c /etc/updatedb.conf
what is -c option for in updatedb?
the difference with plain updatedb?
|
|
|
06-05-2006, 06:12 PM
|
#11
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Rep:
|
The '-c' creates the database.
Type
|
|
|
All times are GMT -5. The time now is 01:03 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|