Can't Upgrade distro

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
pianunix
Posts: 51
Joined: Tue Jul 22, 2014 3:08 am

Can't Upgrade distro

Post by pianunix »

Hi,

Today i was run an upgrade distro such as apt-get upgrade, and having error like this :

" apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up nagios-nrpe-server (2.12-4) ...
insserv: Service pdns has to be enabled to start service nagios-nrpe-server
insserv: exiting now!
update-rc.d: error: insserv rejected the script header
dpkg: error processing nagios-nrpe-server (--configure):
subprocess installed post-installation script returned error exit status 1
configured to not write apport reports
Errors were encountered while processing:
nagios-nrpe-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
"

Can you give us the best solution for this ? because the only way i have to remove the nagios-nrpe-server. :(

Thanks.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: Can't Upgrade distro

Post by lmiltchev »

What is the distro/architecture? Did you install nrpe from repo?
Be sure to check out our Knowledgebase for helpful articles and solutions!
pianunix
Posts: 51
Joined: Tue Jul 22, 2014 3:08 am

Re: Can't Upgrade distro

Post by pianunix »

i'm using debian squeeze.

Yes we using repo when installing this.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: Can't Upgrade distro

Post by lmiltchev »

We have no control over the Ubuntu/Debian nagios repos. Most of the "solutions" I was able to find were removing and reinstalling nagios after the upgrade. :(
Before taking this route, you could post a question on the Debian support forums. They may be able to help you with the upgrade.
Be sure to check out our Knowledgebase for helpful articles and solutions!
pianunix
Posts: 51
Joined: Tue Jul 22, 2014 3:08 am

Re: Can't Upgrade distro

Post by pianunix »

This issue has been fixed by doing purge or removing all pdns package. Thanks for all.
Locked