[Pkg-nagios-devel] Error during remove / re-install of nagios3-common on debian etch 32bit

Johnny Walker johnnyjboss at gmail.com
Thu Jul 30 15:17:36 UTC 2009


I was attempting to remove nagios3-common from my debian etch workstation
and I was getting an error on purging that package. I then attempted to
re-install it so that I can re-remove it cleanly and I got this error which
specifically asks me to notify the package maintainer:

#error attempting dpkg-reconfigure -a :

/var/lib/dpkg/info/nagios3-common.prerm: line 23: syntax error near
unexpected token `fi'

#so then i read this file looking for the error and I didnt one:

DALJWALKERLNX:/var/log# vim /var/lib/dpkg/info/nagios3-common.prerm

#so then I decided to re-install it hoping to cleanly remove it afterwards:

DALJWALKERLNX:/var/log# aptitude
Preconfiguring packages ...
Selecting previously deselected package linux-image-2.6.26-2-686.
(Reading database ... 135839 files and directories currently installed.)
Unpacking linux-image-2.6.26-2-686 (from
.../linux-image-2.6.26-2-686_2.6.26-17_i386.deb) ...
Done.
Selecting previously deselected package apache2-utils.
Unpacking apache2-utils (from .../apache2-utils_2.2.9-10+lenny2_i386.deb)
...
Selecting previously deselected package nagios-plugins-basic.
Unpacking nagios-plugins-basic (from
.../nagios-plugins-basic_1.4.12-5_i386.deb) ...
Selecting previously deselected package nagios3-doc.
Unpacking nagios3-doc (from .../nagios3-doc_3.0.6-4~lenny1_all.deb) ...
Selecting previously deselected package nagios3-common.
Preparing to replace nagios3-common 3.0.6-3 (using
.../nagios3-common_3.0.6-4~lenny1_all.deb) ...
/var/lib/dpkg/info/nagios3-common.prerm: line 23: syntax error near
unexpected token `fi'
dpkg: warning - old pre-removal script returned error exit status 2
dpkg - trying script from the new package instead ...
dpkg: ... it looks like that went OK.
Unpacking replacement nagios3-common ...
Processing triggers for man-db ...
Processing triggers for doc-base ...
Processing 1 added doc-base file(s)...
Registering documents with scrollkeeper...
Setting up linux-image-2.6.26-2-686 (2.6.26-17) ...
Running depmod.
Running mkinitramfs-kpkg.
Running postinst hook script update-grub.
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-2.6.26-2-686
Found kernel: /boot/vmlinuz-2.6.26-1-686
Found kernel: /boot/vmlinuz-2.6.18-6-686
Found kernel: /boot/vmlinuz-2.6.18-6-486
Updating /boot/grub/menu.lst ... done

Setting up apache2-utils (2.2.9-10+lenny2) ...
Setting up nagios-plugins-basic (1.4.12-5) ...

Creating config file /etc/nagios-plugins/config/apt.cfg with new version

Creating config file /etc/nagios-plugins/config/dhcp.cfg with new version

Creating config file /etc/nagios-plugins/config/disk.cfg with new version

Creating config file /etc/nagios-plugins/config/dummy.cfg with new version

Creating config file /etc/nagios-plugins/config/ftp.cfg with new version

Creating config file /etc/nagios-plugins/config/http.cfg with new version

Creating config file /etc/nagios-plugins/config/load.cfg with new version

Creating config file /etc/nagios-plugins/config/mail.cfg with new version

Creating config file /etc/nagios-plugins/config/news.cfg with new version

Creating config file /etc/nagios-plugins/config/ntp.cfg with new version

Creating config file /etc/nagios-plugins/config/ping.cfg with new version

Creating config file /etc/nagios-plugins/config/procs.cfg with new version

Creating config file /etc/nagios-plugins/config/real.cfg with new version

Creating config file /etc/nagios-plugins/config/ssh.cfg with new version

Creating config file /etc/nagios-plugins/config/tcp_udp.cfg with new version

Creating config file /etc/nagios-plugins/config/telnet.cfg with new version

Creating config file /etc/nagios-plugins/config/users.cfg with new version
Setting up nagios3-doc (3.0.6-4~lenny1) ...
Setting up nagios3-common (3.0.6-4~lenny1) ...
*** WARNING: ucf was run from a maintainer script that uses debconf, but
             the script did not pass --debconf-ok to ucf. The maintainer
             script should be fixed to not stop debconf before calling ucf,
             and pass it this parameter. For now, ucf will revert to using
             old-style, non-debconf prompting. Ugh!

             Please inform the package maintainer about this problem.
*** WARNING: ucf was run from a maintainer script that uses debconf, but
             the script did not pass --debconf-ok to ucf. The maintainer
             script should be fixed to not stop debconf before calling ucf,
             and pass it this parameter. For now, ucf will revert to using
             old-style, non-debconf prompting. Ugh!

             Please inform the package maintainer about this problem.
Press return to continue.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-nagios-devel/attachments/20090730/242a96ee/attachment.htm>


More information about the Pkg-nagios-devel mailing list