LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-28-2005, 11:44 AM   #1
Jaykay3k
LQ Newbie
 
Registered: Feb 2005
Posts: 23

Rep: Reputation: 15
fatal error using "locate"


Hi,

this is the error i get messgae when I do locate -l stdc++*:

Fatal error: locate: error: security level must be 0 or 1.

Why do i get this error message?

Thanks for anyhelp in solving this.
 
Old 03-01-2005, 08:54 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
It's apparently something to do with SELinux. The following thread might help you: http://www.linuxquestions.org/questi...hreadid=220960
 
Old 03-01-2005, 09:51 PM   #3
NoStop
Member
 
Registered: Feb 2005
Location: Canada
Distribution: Debian Etch - Enlightenment E17
Posts: 116

Rep: Reputation: 15
man locate

looks to me like the -l switch requires a security level ... 0 or 1 :-)

Cheers
 
Old 03-02-2005, 10:09 AM   #4
Jaykay3k
LQ Newbie
 
Registered: Feb 2005
Posts: 23

Original Poster
Rep: Reputation: 15
I had a look at it and still do not understand how the user fixed it! I am a n00b so need a bit more alleboration.

He mentioned "I" was missing in, I don know what he is talking about?!?

thanks for help and advice in advance.
 
Old 03-02-2005, 02:00 PM   #5
NoStop
Member
 
Registered: Feb 2005
Location: Canada
Distribution: Debian Etch - Enlightenment E17
Posts: 116

Rep: Reputation: 15
OK, maybe some examples will help?

locate -l 0 jpeg .... would work
locate -l 1 jpeg .... would work
locate -l jpeg .... will not work, and you'll get the error message it requires 0 or 1

the man page will tell you there is a default value for -l, so you don't need it if you are satisfied with the default. therefore:

locate jpeg .... will work

Cheers
 
  


Reply



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
"FATAL: Unknown capture source type" error from Kismet atlantanewbie Linux - Wireless Networking 2 04-03-2010 05:34 AM
XIO: fatal IO error 04 (connection reset by peer) on X server ":0.0" Kernel 2.6.5 Slackware 15 10-28-2007 11:53 PM
Postgresql error FATAL: user "root" does not exist" cgetty Ubuntu 4 06-21-2005 02:11 PM
Can't locate object method "splitpath" via package "File::Spec" RobJohnston Linux - General 2 06-28-2003 09:59 AM
startx will not start xwindows... "XIO: fatal IO error 104" khermans Linux - Newbie 22 01-09-2002 02:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:24 PM.

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