Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this questionI accidentally deleted /usr/sbin/a2ensite. Any way I can restore it? Tried sudo apt-get install a2ensite but I got the error message:
Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package a2开发者_StackOverflow社区ensite
Tried sudo apt-get install apache2 and sudo aptitude update but no luck there either. Any ideas? Using ubuntu.
Cheers, agsb
Try:
sudo apt-get install --reinstall apache2 apache2-common
a2ensite
as a script is contained in the apache2.2-common
package. You can download it here and extract the file from the contained data archive yourself.
Edit: The Ubuntu packages can be found here.
精彩评论