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

Re: dpkg: error while cleaning up



On Mon, 2006-10-16 at 20:04 +0200, Florian Kulzer wrote:
> 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:
> >  postfix-policyd
> 
> [ 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.

Hi,

I'm not getting the same error any more,  but it's still complaining:

mail:~# cp /usr/share/postfix-policyd/postfix-policyd.conf /etc/
mail:~# apt-get remove postfix-policyd
Reading package lists... Done
Building dependency tree... Done
The following packages will be REMOVED:
  postfix-policyd
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Need to get 0B of archives.
After unpacking 336kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 20229 files and directories currently installed.)
Removing postfix-policyd ...
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:~#


There isn't anything useful in the logs, so it's difficult to know what
exactly is going wrong.

Thanks
Hans



Reply to: