[Pkg-nagios-devel] Bug#840012: nagios-nrpe-server: post install does not allow upgrading for people not using it as a daemon

rui rui at iscte.pt
Fri Oct 7 15:32:42 UTC 2016


Package: nagios-nrpe-server
Version: 2.15-1+b1
Severity: normal

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
   * What was the outcome of this action?
   * What outcome did you expect instead?

*** End of the template - remove these template lines ***


When upgrading from Jessie to Stretch, at the end of dist-upgrade, it
ends with an error:

Errors were encountered while processing:
 nagios-nrpe-server
  E: Sub-process /usr/bin/dpkg returned an error code (1)

To finish installing nagios-nrpe-server, I ended up verifying the
post-install scripts.

At nagios-nrpe-server.postinst:

#!/bin/sh
set -e
# Automatically added by dh_installinit
if [ -x "/etc/init.d/nagios-nrpe-server" ]; then
    update-rc.d nagios-nrpe-server defaults >/dev/null
        invoke-rc.d nagios-nrpe-server start || exit $?
	fi


As I have nagios-nrpe being invoked by (x)inetd and not running
as a daemon, it failed startup and thus the apt dist-upgrade
error.

I do not recommend activating the service for boot and starting it, as
the service can also be started on non daemon-mode.

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.7.0-0.bpo.1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.utf8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages nagios-nrpe-server depends on:
ii  adduser      3.115
ii  libc6        2.24-3
ii  libssl1.0.2  1.0.2j-1
ii  libwrap0     7.6.q-25
ii  lsb-base     9.20160629

Versions of packages nagios-nrpe-server recommends:
ii  nagios-plugins        2.1.2-2
ii  nagios-plugins-basic  2.1.2-2

nagios-nrpe-server suggests no packages.

-- Configuration Files:
/etc/default/nagios-nrpe-server changed [not included]
/etc/nagios/nrpe.cfg changed [not included]

-- no debconf information



More information about the Pkg-nagios-devel mailing list