percona-nagios-plugins fails to install on Debian Squeeze when debsums is installed

Bug #1194757 reported by Markus uckelmann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Monitoring Plugins
Fix Released
Medium
Unassigned

Bug Description

Hi all,

I just stumbled over this problem. Here the problem in detail:

root@host ~# LANG=C apt-get install percona-nagios-plugins
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  percona-nagios-plugins
0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
Need to get 0 B/20.3 kB of archives.
After this operation, 0 B of additional disk space will be used.
Selecting previously deselected package percona-nagios-plugins.
(Reading database ... 48356 files and directories currently installed.)
Unpacking percona-nagios-plugins (from .../percona-nagios-plugins_1.0.3-1_all.deb) ...
Setting up percona-nagios-plugins (1.0.3-1) ...

Plugins are installed to /usr/lib64/nagios/plugins
debsums: package percona-nagios-plugins version 1.0.3-1 != installed version 1.0.3-1
E: Problem executing scripts DPkg::Post-Invoke 'if [ -x /usr/bin/debsums ]; then /usr/bin/debsums --generate=nocheck -sp /var/cache/apt/archives; fi'
E: Sub-process returned an error code

After some digging I found out that in the following line the first version number has a space at the end:
debsums: package percona-nagios-plugins version 1.0.3-1 != installed version 1.0.3-1

So it is in real '1.0.3-1 ' != '1.0.3-1' and debsums stumbles over this. After some further digging my guess is that the space comes from the control file in deb package:

root@host:/tmp# cat -vte control
[...]
Package: percona-nagios-plugins$
Version: 1.0.3-1 $
Architecture: all $
[...]

I haven't tried anything else, like does upgrading the package work e.g.

Cheers, Shorty

Revision history for this message
Roman Vynar (roman-vynar) wrote :

Hi,

Thanks for the report.

However, I was unable to reproduce the problem with debsum. But there is the space in control file so I think it was the reason of your problem. It will be fixed in the next release.

Changed in percona-monitoring-plugins:
status: New → Confirmed
importance: Undecided → Medium
tags: added: nagios package
tags: added: packaging
removed: package
Changed in percona-monitoring-plugins:
status: Confirmed → Fix Committed
Changed in percona-monitoring-plugins:
milestone: none → 1.0.4
Changed in percona-monitoring-plugins:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.