LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   apt-get remove nagios-text not working (https://www.linuxquestions.org/questions/linux-software-2/apt-get-remove-nagios-text-not-working-586647/)

namit 09-22-2007 06:28 PM

apt-get remove nagios-text not working
 
Hey just wondering how do i uninstall nagios its not working working. just running apt-get remove nagios.

also tried this.
Quote:

Reading package lists... Done
Building dependency tree... Done
The following packages will be REMOVED
nagios2-common
0 upgraded, 0 newly installed, 1 to remove and 1 not upgraded.
Need to get 0B of archives.
After unpacking 410kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 49921 files and directories currently installed.)
Removing nagios2-common ...
dpkg: error processing nagios2-common (--remove):
subprocess pre-removal script returned error exit status 1
Errors were encountered while processing:
nagios2-common
E: Sub-process /usr/bin/dpkg returned an error code (1)

Quote:

namit@mailman:~/stat_everything$ sudo apt-get remove nagios* --purge
Reading package lists... Done
Building dependency tree... Done
Note, selecting nagios-plugins-basic for regex 'nagios*'
Note, selecting nagios-plugins-standard for regex 'nagios*'
....
Note, selecting nagios-statd-server for regex 'nagios*'
Note, selecting nagios-nrpe-doc for regex 'nagios*'
The following packages will be REMOVED
nagios-common* nagios-plugins-basic* nagios-text* nagios2-common* nagios2-doc*
0 upgraded, 0 newly installed, 5 to remove and 1 not upgraded.
Need to get 0B of archives.
After unpacking 10.2MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 50305 files and directories currently installed.)
Removing nagios-text ...
Stopping nagios monitoring daemon: nagios.
Removing nagios-common ...
Reloading web server config...2720
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
.
Purging configuration files for nagios-common ...
dpkg - warning: while removing nagios-common, directory `/etc/nagios' not empty so not removed.
Removing nagios2-common ...
dpkg: error processing nagios2-common (--purge):
subprocess pre-removal script returned error exit status 1
dpkg: nagios-plugins-basic: dependency problems, but removing anyway as you request:
nagios2-common depends on nagios-plugins-basic.
Removing nagios-plugins-basic ...
Purging configuration files for nagios-plugins-basic ...
dpkg: nagios2-doc: dependency problems, but removing anyway as you request:
nagios2-common depends on nagios2-doc; however:
Package nagios2-doc is to be removed.
Removing nagios2-doc ...
Errors were encountered while processing:
nagios2-common
E: Sub-process /usr/bin/dpkg returned an error code (1)
namit@mailman:~/stat_everything$
Thanks


All times are GMT -5. The time now is 10:50 AM.