I have failed to remove apache2 from my ubuntu server.
$ sudo apt-get --purge remove apache2 and
$ sudo apt-get remove apache2 and
$ sudo apt-get autoremove and when I tried to do
$ sudo apt-get --purge remove apache2-utils I get dependency error.
After I did the above steps I could still do
$ sudo service apache2 restart. The server restarts as normal. The www dir is still there intact. This tells me that apache2 was not removed.
How can I get rid of it?