The bug seems to happen inside the dh_purge statement. Here are the last three lines I get after modifying the postrm script to set -x: + read -r _db_internal_line + RET='20 Unsupported command "removing" (full line was " Removing any system startup links for /etc/init.d/xserver-xorg ...") received from confmodule.' + return 20 HTH, -Hilko