Ciao Jonathan,

thanks for your fast reply, not sure that I got it right. The
following does not do the job::

    dpkg --auto-deconfigure --force-depends --force-remove-essential \
        --remove courier-mta courier-base courier-authdaemon \
        courier-authlib-userdb courier-authlib

However, if I force the order manually, it works::

    dpkg --force-depends --force-remove-essential --remove courier-mta 
    dpkg --force-depends --force-remove-essential --remove courier-base \
        courier-authdaemon courier-authlib-userdb courier-authlib

Shouldn't this still be a bug in dpkg because it render the order arbitrary?

One solution of this problem on the courier side could be
(similar to http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=262887)::

1.) stopping the authdaemond daemon in a courier-authlib "postrm remove"
2.) change the /etc/init.d/courier-authdaemon script that it does not
    stop the authdaemon, if it is already stopped or if the
    courier-authlib package is not installed


Regards,
Moritz


On Sat, Jul 17, 2010 at 06:59:38AM -0500, Jonathan Nieder wrote:
> severity 579790 important
> quit
> 
> Hi Moritz,
> 
> Moritz Beyreuther wrote:
> 
> > /usr/bin/dpkg --status-fd 11 --force-depends --force-remove-essential 
> > --remove courier-mta courier-base courier-authdaemon courier-authlib-userdb 
> > courier-authlib
> >
> > However courier-authlib is deinstalled first which breaks the
> > deinstallation process as explained in 579790.
> 
> exim is being installed to replace courier-mta as mail-transfer-agent.
> As you mentioned, bsd-mailx depends on an mta, so there is apparently
> no clean way to do this and the frontend passes a --force-* option.
> So now from the point of view of dpkg we are outside the realm of
> policy and in my opinion no matter what happens it is not going to be
> intuitive.
> 
> There is a way around that, which is to use the --auto-deconfigure
> option.  It should be able to produce a saner sequence of operations:
> 
>  1. deconfigure everything that needs an mta
>  2. remove courier-mta
>  3. remove the packages courier-mta depended on
> 
> Just my two cents.  See also http://bugs.debian.org/501866 which is
> about circular dependencies rather than external ones.
> 
> Thanks for the report,
> Jonathan



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to