Comment 3 for bug 256920

Revision history for this message
Thierry Carrez (ttx) wrote : Re: nagios2 won't install/update

I think I reproduced it :
$ sudo apt-get install nagios2
$ sudo rm /etc/nagios2/apache2.conf
$ sudo apt-get remove nagios2-common

nagios2 cannot be removed (or reinstalled) if the /etc/nagios2/apache2.conf file is missing for whatever reason.

A workaround would be to :
$ sudo touch /etc/nagios2/apache2.conf
$ sudo apt-get purge nagios2 nagios2-common
$ sudo apt-get install nagios2

Please confirm that this fixes the issue for you.