You are not logged in.

#1 2003-08-15 03:45:55

Ghost Dawg
Member
From: Third Stone from the Sun
Registered: 2002-10-28
Posts: 47

Locate Command

When i run the locate command, I always get this error message:

# locate soundcore
warning: locate: could not open database: /var/lib/slocate/slocate.db: No such file or directory
warning: locate: Could not find the group: slocate in the /etc/group file.
fatal error: This is a result of the group missing or a corrupted group file.

Is there suppose to be a group for slocate?

Any suggestions on fixing this problem?

Thnx.


Drink Pepsi, the new generation, get Linux!

Offline

#2 2003-08-15 07:21:11

Arielext
Member
From: Amersfoort, the Netherlands
Registered: 2002-08-12
Posts: 362
Website

Re: Locate Command

make group for slocate with

groupadd slocate

and run updatedb again, the error about no db file will remain the first time


apt-get install arch

Offline

#3 2003-08-16 12:56:02

Ghost Dawg
Member
From: Third Stone from the Sun
Registered: 2002-10-28
Posts: 47

Re: Locate Command

Thanks that did work, but one problem is it works as root but not as normal user. How to change the permission so normal user can use locate command.

Thnx.


Drink Pepsi, the new generation, get Linux!

Offline

#4 2003-08-16 14:30:09

sarah31
Member
From: Middle of Canada
Registered: 2002-08-20
Posts: 2,975
Website

Re: Locate Command

not sure if this is the proper way in enabling locate for user but i suppose you could add your user to the slocate group.

but i really do not know if that is the correct answer.


AKA uknowme

I am not your friend

Offline

#5 2003-08-16 18:27:51

apeiro
Daddy
From: Victoria, BC, Canada
Registered: 2002-08-12
Posts: 771
Website

Re: Locate Command

It sounds like the slocate package didn't install properly for you, which does seem to happen from time to time.   :?

I'd recommend removing any slocate groups you've added manually.  Then remove and re-install the slocate package.  After doing this you should see slocate:x:21: line in your /etc/group file.

If all's well, go ahead and generate the slocate database manually with the "updatedb" command.  Note that this is also run daily from cron.

# pacman -R slocate
# pacman -S slocate
# updatedb

Offline

#6 2003-08-18 15:06:32

tyme
Member
From: PA
Registered: 2003-06-12
Posts: 139
Website

Re: Locate Command

i've run into this problem with slocate myself (on 2 different installs-pre 0.5 and with 0.5).  i have not given apeiro's suggestion a try, usually i create a the slocate group and add my user to it-this works fine for me.

Offline

#7 2009-05-19 20:37:07

pokpig
Member
Registered: 2009-05-17
Posts: 9

Re: Locate Command

apeiro wrote:

It sounds like the slocate package didn't install properly for you, which does seem to happen from time to time.   :?

...

# pacman -R slocate
# pacman -S slocate
# updatedb

cannot believe that this is still true as in 2009 May and reinstalling slocate is still the solution for that.

Offline

#8 2009-05-20 14:45:24

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: Locate Command

pokpig wrote:
apeiro wrote:

It sounds like the slocate package didn't install properly for you, which does seem to happen from time to time.   :?

...

# pacman -R slocate
# pacman -S slocate
# updatedb

cannot believe that this is still true as in 2009 May and reinstalling slocate is still the solution for that.

Necro posting ftl....
Also, use mlocate instead of slocate. It's much better.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#9 2009-05-20 14:52:23

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

Re: Locate Command

Mr.Elendig wrote:

Necro posting ftl....
Also, use mlocate instead of slocate. It's much better.

QFT. Closed

Offline

Board footer

Powered by FluxBB