57

I'm running 13.10. Clean install. Ran: sudo apt-get install apache2

I would expect that I would have htpasswd in the /usr/sbin directory along with the apache2 executable. I don't.

I can provide any info necessary.

  • Please split your question. htpasswd is covered here, while you could create a separate question with apache reinstall. – Andrejs Cainikovs Nov 18 '13 at 16:46
  • Also missing on 14.04 – Nick Woodhams Aug 11 '14 at 7:25
122

Perhaps you have apache2-utils not installed. Try searching apache-utils in software manager or with command line:

sudo apt-get install apache2-utils
| improve this answer | |
7
username@host:~$ htpasswd
The program 'htpasswd' can be found in the following packages:
 * apache2-utils
 * mini-httpd
Try: sudo apt-get install <selected package>

The error message is obvious. sudo apt-get install apache2-utils should solve your problem with missing htpasswd binary.

| improve this answer | |
  • 3
    Not if you uninstall that horrible 'command-not-found' package. – Aaron C. de Bruyn Sep 15 '15 at 17:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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