package nagios-plugins-basic 1.4.15-5ubuntu3 failed to install/upgrade: ErrorMessage: subprocess installed post-installation script returned error exit status 127

Bug #989788 reported by James M Doherty on 2012-04-27
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
perl (Ubuntu)
Medium
Unassigned

Bug Description

** Collecting problem information

The collected information can be sent to the developers to improve the
application. This might take a few minutes.
......ERROR: hook /usr/share/apport/general-hooks/ubuntu.py crashed:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/apport/report.py", line 718, in add_hooks_info
    symb['add_info'](self, ui)
  File "/usr/share/apport/general-hooks/ubuntu.py", line 49, in add_info
    check_attachment_for_errors(report, log)
  File "/usr/share/apport/general-hooks/ubuntu.py", line 149, in check_attachment_for_errors
    if attachment in report and re.search(grub_error, report[attachment], re.MULTILINE):
  File "/usr/lib/python2.7/re.py", line 142, in search
    return _compile(pattern, flags).search(string)
TypeError: expected string or buffer

ProblemType: Package
DistroRelease: Ubuntu 12.04
Package: nagios-plugins-basic 1.4.15-5ubuntu3
ProcVersionSignature: Ubuntu 3.0.0-12.20-server 3.0.4
Uname: Linux 3.0.0-12-server x86_64
ApportVersion: 2.0.1-0ubuntu6
Architecture: amd64
Date: Fri Apr 27 09:29:52 2012
ErrorMessage: ErrorMessage: subprocess installed post-installation script returned error exit status 127
InstallationMedia: Ubuntu-Server 11.10 "Oneiric Ocelot" - Release amd64 (20111011)
SourcePackage: nagios-plugins
Title: package nagios-plugins-basic 1.4.15-5ubuntu3 failed to install/upgrade: ErrorMessage: subprocess installed post-installation script returned error exit status 127
UpgradeStatus: Upgraded to precise on 2012-04-27 (0 days ago)

James M Doherty (jim-qpmg4w3w) wrote :
Clint Byrum (clint-fewbar) wrote :

Hi James, thanks for taking the time to file this bug report and help us make Ubuntu better.

It appears that Nagios was just a victim of insufficient dependencies:

Setting up libperl5.14 (5.14.2-6ubuntu2) ...
Setting up libperl-dev (5.14.2-6ubuntu2) ...
Setting up update-inetd (4.41) ...
Setting up iputils-ping (3:20101006-1ubuntu1) ...
Setting up nagios-plugins-basic (1.4.15-5ubuntu3) ...
perl: error while loading shared libraries: libperl.so.5.12: cannot open shared object file: No such file or directory
dpkg: error processing nagios-plugins-basic (--configure):
 subprocess installed post-installation script returned error exit status 127

As you see, libperl was updated without updating perl, so the linking failed. Nagios uses 'ucf', which is a perl program, and depends on debhelper, which then depends on perl. The problem is that perl was basically in an inconsistent state at that point. It seems to me that perl should Depend: libperl5 ${binary:Version} so that apt will upgrade perl before trying to use perl. Perl is so fundamental to package management though, its possible that this is one of those corner cases that has to be dealt with differently.

Anyway, I believe this is perl's problem, not nagios's, and so I'm redirecting the bug, and marking it as Medium importance.

affects: nagios-plugins (Ubuntu) → perl (Ubuntu)
Changed in perl (Ubuntu):
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers