ubuntu16.04 安装apache2报错 解决方案

从ubuntu 14.04 升级ubuntu16.04后,apache2无法启动,如下报错:

Starting apache2 (via systemctl): apache2.serviceJob for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details.
 failed!

卸载apache2
再次重装仍报错:

Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details.

需要执行以下命令
sudo apt-get purge apache2
sudo apt-get install apache2
启动ok。

● apache2.service - LSB: Apache2 web server
   Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
  Drop-In: /lib/systemd/system/apache2.service.d
           └─apache2-systemd.conf
   Active: active (running) since Mon 2016-11-07 20:05:13 CST; 23s ago
     Docs: man:systemd-sysv-generator(8)
   CGroup: /system.slice/apache2.service
           ├─10051 /usr/sbin/apache2 -k start
           ├─10054 /usr/sbin/apache2 -k start
           └─10055 /usr/sbin/apache2 -k start