You are not logged in.
Pages: 1
Topic closed
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
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
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
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
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
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
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
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
Necro posting ftl....
Also, use mlocate instead of slocate. It's much better.
QFT. Closed
Offline
Pages: 1
Topic closed