[Pkg-nagios-devel] Bug#514168: nagios3-common: Yet another remove bug

Vlado Peshov vpesov at genrepsoft.com
Wed Apr 1 09:46:14 UTC 2009


Package: nagios3-common
Version: 3.0.6-3

I tried to remove this package and this error occurred:

# apt-get remove -f nagios3-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
 nagios3-common
0 upgraded, 0 newly installed, 1 to remove and 1 not upgraded.
After this operation, 459kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 38205 files and directories currently installed.)
Removing nagios3-common ...
/var/lib/dpkg/info/nagios3-common.prerm: line 23: syntax error near
unexpected token `fi'
dpkg: error processing nagios3-common (--remove):
 subprocess pre-removal script returned error exit status 2
Errors were encountered while processing:
 nagios3-common
E: Sub-process /usr/bin/dpkg returned an error code (1)

I have looked in the script nagios3-common and I noticed that ";" is
missing on line 7. Line 7 was:

if [ -f $apacheconf ] then

and I have corrected:

if [ -f $apacheconf ]; then

After this I successfully removed the package.

Regards, Vlado





More information about the Pkg-nagios-devel mailing list