[Pkg-nagios-devel] nagios3-common missing then

Andreas Rütten AndreasRuetten at gmx.de
Sun Jun 7 14:43:27 UTC 2009


today I had some problem while removing the nagios3-common package on my
Debian Lenny system: (sorry for the German version)

Entferne nagios3-common ...
/var/lib/dpkg/info/nagios3-common.prerm: line 23: syntax error near
unexpected token `fi' dpkg: Fehler beim Bearbeiten von nagios3-common
(--purge): Unterprozess pre-removal script gab den Fehlerwert 2 zurück
Fehler traten auf beim Bearbeiten von:
E: Sub-process /usr/bin/dpkg returned an error code (1)

The Problem is in the prerm file.
The "if" statement in line 7 has no "then" token.

I could fix it with this patch:

--- nagios3-common.prerm.orig   2009-01-25 19:17:29.000000000 +0100
+++ nagios3-common.prerm        2009-06-07 16:39:09.000000000 +0200
@@ -4,7 +4,7 @@


-if [ -f $apacheconf ]
+if [ -f $apacheconf ]; then
   case "$1" in
        # find the configured servers


Andreas Rütten
mailto : AndreasRuetten at gmx.de
PGP DSA/1024, C1CC335C, A655 0268 CEA6 A3DA 30AA D356 A450 30BD C1CC 335C

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-nagios-devel/attachments/20090607/4fa9f79d/attachment.pgp>

More information about the Pkg-nagios-devel mailing list