Re: dpkg: error while cleaning up
On Sun, Oct 22, 2006 at 15:18:21 +0200, Hans du Plooy wrote:
> On Wed, 2006-10-18 at 15:57 +0200, Florian Kulzer wrote:
> > > dpkg: error processing postfix-policyd (--remove):
> > > subprocess pre-removal script returned error exit status 10
> > > Errors were encountered while processing:
> > > postfix-policyd
> > > E: Sub-process /usr/bin/dpkg returned an error code (1)
> > > mail:~#
>
> > We have to identify the problem in the pre-removal script:
> > /var/lib/dpkg/info/postfix-policyd.prerm
>
> It looks like this:
>
> #!/bin/sh
>
> set -e
> #set -x
>
> . /usr/share/debconf/confmodule
> . /usr/share/dbconfig-common/dpkg/prerm.mysql
> dbc_go postfix-policyd $@
>
> # Automatically added by dh_installinit
> if [ -x "/etc/init.d/postfix-policyd" ]; then
> if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
> invoke-rc.d postfix-policyd stop || exit $?
> else
> /etc/init.d/postfix-policyd stop || exit $?
> fi
> fi
> # End automatically added section
>
> I don't see a "dbc_go" command anywhere?
It is defined in /usr/share/dbconfig-common/dpkg/prerm which is sourced
by /usr/share/dbconfig-common/dpkg/prerm.mysql. Seems to be part of a
general system to help with packages that use databases. Do you have the
latest version of package "dbconfig-common" installed?
[...]
> I have postfix-policyd 1.80-2.1
If all else fails then I myself would be sorely tempted to simply
comment out the "dbc_go" line in the pre-removal script.
--
Regards,
Florian
Reply to: