Re: dpkg: error while cleaning up
On Mon, Oct 16, 2006 at 12:28:23 +0200, Hans du Plooy wrote:
> Hi guys,
> I'm busy setting up a mail relay on Etch 3 Beta, and I decided to have a
> look at postfix-policyd. Installing it gave me an error though. Now
> when I apt-get install anything, I get the same dpkg error for
> postfix-policyd, and trying to remove it give the same problem:
> mail:~# dpkg -r postfix-policyd
> (Reading database ... 18557 files and directories currently installed.)
> Removing postfix-policyd ...
> dpkg: error processing postfix-policyd (--remove):
> subprocess pre-removal script returned error exit status 10
> grep: /etc/postfix-policyd.conf: No such file or directory
> Starting Postfix greylisting policy daemon: start-stop-daemon: --start
> needs --exec or --startas
> Try `start-stop-daemon --help' for more information.
> invoke-rc.d: initscript postfix-policyd, action "start" failed.
> dpkg: error while cleaning up:
> subprocess post-installation script returned error exit status 3
> Errors were encountered while processing:
[ snip: the same dpkg error when trying to "apt-get remove" ]
The first thing that seems to go wrong is that grep cannot find
something in the non-existent file /etc/postfix-policyd.conf. According
to apt-file this package should contain the file
/usr/share/postfix-policyd/postfix-policyd.conf. I would try to copy it
to /etc and hope that this enables dpkg to remove the package.