Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 06-14-2008, 01:59 AM   #1
Registered: Jan 2007
Distribution: Debian
Posts: 217

Rep: Reputation: 30
locate not working well

Hi all. I dont know if this is a bug or if im not doing it properly. I just upgraded from Sarge to Etch and a few things dont seem right. For example when i try to use locate command, i get a weird msg.

locate: /var/cache/locate/locatedb: No such file or directory
What is this?? Locate is in fact on the system, i dont understand what im doing wrong, is there a missing flag to find a file im looking for? Thanx in advance!
Old 06-14-2008, 02:59 AM   #2
Senior Member
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
Read the 'locate' manual page to find out what its control files are etc. It sounds like the 'upgrade' had somehow screwed up some settings. You may also see if a reconfigure will work:

dpkg-reconfigure locate
Old 06-14-2008, 03:10 AM   #3
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
you may just need to run updatedb
Old 06-14-2008, 05:32 AM   #4
Registered: Jan 2007
Distribution: Debian
Posts: 217

Original Poster
Rep: Reputation: 30
Originally Posted by billymayday View Post
you may just need to run updatedb

computer:~# /usr/bin/updatedb
computer:~# locate httpd.conf
Thanx for the advice!
Old 06-14-2008, 10:33 AM   #5
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
usually updatedb runs daily, check for /etc/cron.daily/find


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
why locate command is not working? sathyguy Linux - Enterprise 2 07-29-2007 10:32 AM
locate mikeshn Linux - Software 4 05-14-2007 05:38 AM
cpan> locate -u Unknown shell command 'locate -u'. Type ? for help. sharad2005 Linux From Scratch 1 08-04-2006 01:40 AM
Can't locate locate hindenbergbaby Linux - Newbie 3 10-22-2003 05:13 PM
how to locate ? jamaso Linux - General 4 10-17-2002 04:45 PM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 04:48 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration