package nagios-plugins-basic 1.4.15-5ubuntu3 failed to install/upgrade: ErrorMessage: subprocess installed post-installation script returned error exit status 127
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
perl (Ubuntu) |
New
|
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/
Traceback (most recent call last):
File "/usr/lib/
symb[
File "/usr/share/
check_
File "/usr/share/
if attachment in report and re.search(
File "/usr/lib/
return _compile(pattern, flags).
TypeError: expected string or buffer
ProblemType: Package
DistroRelease: Ubuntu 12.04
Package: nagios-
ProcVersionSign
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-
UpgradeStatus: Upgraded to precise on 2012-04-27 (0 days ago)
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) ... 1ubuntu1) ... plugins- basic (1.4.15-5ubuntu3) ... plugins- basic (--configure):
Setting up libperl-dev (5.14.2-6ubuntu2) ...
Setting up update-inetd (4.41) ...
Setting up iputils-ping (3:20101006-
Setting up nagios-
perl: error while loading shared libraries: libperl.so.5.12: cannot open shared object file: No such file or directory
dpkg: error processing nagios-
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.