Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I use Debian and try to run update-rc.d sphinx defaults, buts it's shows:

update-rc.d command not found

Script sphinx already exists.

How can I fix it?

share|improve this question
    
Can I ask what version of Debian you are running? –  Matthew Gall Jun 20 '12 at 14:29
1  
Are you sudoing, or logged in as root? You should have /usr/sbin in your $PATH -- /usr/sbin/update-rc.d –  jscott Jun 20 '12 at 14:29

1 Answer 1

sudo update-rc.d

or

sudo /usr/sbin/update-rc.d

If the second one works but the first one doesn't, something is wrong with your $PATH variables.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.