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:<br>
<br>#error attempting dpkg-reconfigure -a :<br><br>/var/lib/dpkg/info/nagios3-common.prerm: line 23: syntax error near unexpected token `fi&#39;<br><br>#so then i read this file looking for the error and I didnt one:<br><br>
DALJWALKERLNX:/var/log# vim /var/lib/dpkg/info/nagios3-common.prerm<br><br>#so then I decided to re-install it hoping to cleanly remove it afterwards:<br><br>DALJWALKERLNX:/var/log# aptitude<br>Preconfiguring packages ...<br>
Selecting previously deselected package linux-image-2.6.26-2-686.<br>(Reading database ... 135839 files and directories currently installed.)<br>Unpacking linux-image-2.6.26-2-686 (from .../linux-image-2.6.26-2-686_2.6.26-17_i386.deb) ...<br>
Done.<br>Selecting previously deselected package apache2-utils.<br>Unpacking apache2-utils (from .../apache2-utils_2.2.9-10+lenny2_i386.deb) ...<br>Selecting previously deselected package nagios-plugins-basic.<br>Unpacking nagios-plugins-basic (from .../nagios-plugins-basic_1.4.12-5_i386.deb) ...<br>
Selecting previously deselected package nagios3-doc.<br>Unpacking nagios3-doc (from .../nagios3-doc_3.0.6-4~lenny1_all.deb) ...<br>Selecting previously deselected package nagios3-common.<br>Preparing to replace nagios3-common 3.0.6-3 (using .../nagios3-common_3.0.6-4~lenny1_all.deb) ...<br>
/var/lib/dpkg/info/nagios3-common.prerm: line 23: syntax error near unexpected token `fi&#39;<br>dpkg: warning - old pre-removal script returned error exit status 2<br>dpkg - trying script from the new package instead ...<br>
dpkg: ... it looks like that went OK.<br>Unpacking replacement nagios3-common ...<br>Processing triggers for man-db ...<br>Processing triggers for doc-base ...<br>Processing 1 added doc-base file(s)...<br>Registering documents with scrollkeeper...<br>
Setting up linux-image-2.6.26-2-686 (2.6.26-17) ...<br>Running depmod.<br>Running mkinitramfs-kpkg.<br>Running postinst hook script update-grub.<br>Searching for GRUB installation directory ... found: /boot/grub<br>Searching for default file ... found: /boot/grub/default<br>
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst<br>Searching for splash image ... none found, skipping ...<br>Found kernel: /boot/vmlinuz-2.6.26-2-686<br>Found kernel: /boot/vmlinuz-2.6.26-1-686<br>
Found kernel: /boot/vmlinuz-2.6.18-6-686<br>Found kernel: /boot/vmlinuz-2.6.18-6-486<br>Updating /boot/grub/menu.lst ... done<br><br>Setting up apache2-utils (2.2.9-10+lenny2) ...<br>Setting up nagios-plugins-basic (1.4.12-5) ...<br>
<br>Creating config file /etc/nagios-plugins/config/apt.cfg with new version<br><br>Creating config file /etc/nagios-plugins/config/dhcp.cfg with new version<br><br>Creating config file /etc/nagios-plugins/config/disk.cfg with new version<br>
<br>Creating config file /etc/nagios-plugins/config/dummy.cfg with new version<br><br>Creating config file /etc/nagios-plugins/config/ftp.cfg with new version<br><br>Creating config file /etc/nagios-plugins/config/http.cfg with new version<br>
<br>Creating config file /etc/nagios-plugins/config/load.cfg with new version<br><br>Creating config file /etc/nagios-plugins/config/mail.cfg with new version<br><br>Creating config file /etc/nagios-plugins/config/news.cfg with new version<br>
<br>Creating config file /etc/nagios-plugins/config/ntp.cfg with new version<br><br>Creating config file /etc/nagios-plugins/config/ping.cfg with new version<br><br>Creating config file /etc/nagios-plugins/config/procs.cfg with new version<br>
<br>Creating config file /etc/nagios-plugins/config/real.cfg with new version<br><br>Creating config file /etc/nagios-plugins/config/ssh.cfg with new version<br><br>Creating config file /etc/nagios-plugins/config/tcp_udp.cfg with new version<br>
<br>Creating config file /etc/nagios-plugins/config/telnet.cfg with new version<br><br>Creating config file /etc/nagios-plugins/config/users.cfg with new version<br>Setting up nagios3-doc (3.0.6-4~lenny1) ...<br>Setting up nagios3-common (3.0.6-4~lenny1) ...<br>
*** WARNING: ucf was run from a maintainer script that uses debconf, but<br>             the script did not pass --debconf-ok to ucf. The maintainer<br>             script should be fixed to not stop debconf before calling ucf,<br>
             and pass it this parameter. For now, ucf will revert to using<br>             old-style, non-debconf prompting. Ugh!<br><br>             Please inform the package maintainer about this problem.<br>*** WARNING: ucf was run from a maintainer script that uses debconf, but<br>
             the script did not pass --debconf-ok to ucf. The maintainer<br>             script should be fixed to not stop debconf before calling ucf,<br>             and pass it this parameter. For now, ucf will revert to using<br>
             old-style, non-debconf prompting. Ugh!<br><br>             Please inform the package maintainer about this problem.<br>Press return to continue.<br><br><br>