[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

dpkg can't purge init script



I can't purge a package :

curitiba_POTATO:/# dpkg --purge superviser-server
(Reading database ... 9401 files and directories currently installed.)
Removing superviser-server ...
Stopping superviser-server: dpkg: error processing superviser-server (--purge):
 subprocess pre-removal script returned error exit status 1
update-rc.d: /etc/init.d/superviser-server exists during rc.d purge (use -f to force)
dpkg: error while cleaning up:
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 superviser-server
curitiba_POTATO:/# ls -l /etc/init.d/superviser-server
-rwxr-xr-x    1 root     root         1945 Jul 27 11:10 /etc/init.d/superviser-server
curitiba_POTATO:/#



Here comes the script :



[eric@curitibaPOTATO:~/arturo/superviser-server-1.0]$ more debian/prerm
#! /bin/sh
# prerm script for superviser-server
#
# see: dh_installdeb(1)

set -e

# summary of how this script can be called:
#        * <prerm> `remove'
#        * <old-prerm> `upgrade' <new-version>
#        * <new-prerm> `failed-upgrade' <old-version>
#        * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
#        * <deconfigured's-prerm> `deconfigure' `in-favour'
#          <package-being-installed> <version> `removing'
#          <conflicting-package> <version>
# for details, see /usr/doc/packaging-manual/

case "$1" in
    remove|upgrade|deconfigure)
#       install-info --quiet --remove /usr/info/superviser-server.info.gz
        ;;

    failed-upgrade)
        ;;
    *)
        echo "prerm called with unknown argument \`$1'" >&2
        exit 0
    ;;
esac

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

exit 0


[eric@curitibaPOTATO:~/arturo/superviser-server-1.0]$



And the debhelper script :

[eric@curitibaPOTATO:~/arturo/superviser-server-1.0]$ more debian/prerm.debhelper
# Automatically added by dh_installdocs
if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/superviser-server ]; then
        rm -f /usr/doc/superviser-server
fi
# End automatically added section
# Automatically added by dh_installinit
/etc/init.d/superviser-server stop
# End automatically added section
[eric@curitibaPOTATO:~/arturo/superviser-server-1.0]$



Is this a bug in debhelper ?

-- 
Eric VAN BUGGENHAUT

        \_|_/           Andago
       \/   \/          Av. Santa Engracia num 54
a n d a g o  |--        Telef: 91-2041100
       /\___/\ 		http://www.andago.com
        / | \           "Innovando en Internet"
                        eric@andago.com



Reply to: