Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am trying to install and run apache2, but after apt-get purge apache2;apt-get install apache2 (as root), I am still missing the file /usr/sbin/apache2

I am running Backtrack 5 RC 2, which is a Ubuntu devirate.

How can I fix that?

share|improve this question

closed as off topic by Rinzwind, fossfreedom May 22 '12 at 18:14

Questions on Ask Ubuntu are expected to relate to Ubuntu within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

    
"I am running Backtrack 5 RC 2, which is a Ubuntu devirate." cool but this is going to get closed. According to the faq (askubuntu.com/faq) non official derivates are not supported on AU (we are limited to these lubuntu, mythbuntu, xubuntu, medibuntu, ubuntu studio, kubuntu and edubuntu). –  Rinzwind May 22 '12 at 13:54

1 Answer 1

up vote 1 down vote accepted

Given that you are purging, presumably you had it installed at some point and things went wrong. The /usr/sbin/apache2 binary isn't provided by the apache2 package, but by one of its dependencies:

# dpkg -S /usr/sbin/apache2
apache2-mpm-prefork: /usr/sbin/apache2

If your binary is missing, but the package still installed, you can use the above command to figure out which package provides the binary and re-install.

share|improve this answer

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