简体   繁体   中英

apt-get install apache2 wont' install configuration files

I had some problems with apache2, so I decide to get a fresh start. sudo apt-get --purge apache2 It won't clear my config files. So I manually rm the /etc/apache2 folder. Then "sudo apt-get install apache2" won't create /etc/apache2 folder anymore. Tried clear apt/cache, won't help. Tried update/change different source.list, won't help.

Any hint there the problem might be?

Thank a lot.

The configuration files are created on the installation of the package apache2.2-common . The command apt-get install --reinstall apache2.2-common should do the trick.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM