SETUP:: aptitude install exim4-base- exim4-config- exim4-daemon-light- courier-mta courier-base courier-authdaemon courier-authlib courier-authlib-userdb bsd-mailx
REPRODUCE BUG:: aptitude install exim4-daemon-light courier-mta- courier-base- courier-authdaemon- courier-authlib- courier-authlib-userdb- UGLY LOCAL FIX:: sed -i'' 's/exit \$?/exit 0/' /var/lib/dpkg/info/courier-authdaemon.prerm aptitude install -f In order to reproduce the bug bsd-mailx must be installed. bsd-mailx depends on a mail-transport-agent which is provided by courier-mta. On deinstallation (with bsd-mailx installed) courier-authlib is removed first, if bsd-mailx is installed. However courier-authdaemon depends on courier-authlib (which ships /usr/sbin/courierlogger) and cannot be installed anymore. /usr/sbin/courierlogger is called (via authdaemond) from the courier-authdaemon.prerm skript. The policy requires that all programms called from courier-authdaemon.prerm are still installed. Thus for me it seems that aptitude is not deinstalling the packages in the right order. If bsd-mailx is installed the order is:: remove courier-authlib 0.63.0-2 0.63.0-2 remove courier-mta 0.65.0-1 0.65.0-1 remove courier-base 0.65.0-1 0.65.0-1 remove courier-authdaemon 0.63.0-2 0.63.0-2 which then breaks. Regards, Moritz -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org