Hi, This bug is a consequence of the removal of various set +u/set -u in commit f671341b70f8edaaa63704b73fd760ef013fa504.
The bug #369953 has not been resolved then the workarounds set up waiting for its resolution should not be removed (or the set -u should also be removed from the entire script). Please find a patch reverting this changes. Regards, -- Jonathan Dupart
diff -Nru mdadm-3.3.2/debian/changelog mdadm-3.3.2/debian/changelog --- mdadm-3.3.2/debian/changelog 2014-10-04 19:28:54.000000000 +0200 +++ mdadm-3.3.2/debian/changelog 2014-11-14 15:59:37.000000000 +0100 @@ -1,3 +1,14 @@ +mdadm (3.3.2-3) unstable; urgency=medium + + * Non-maintainer upload. + * Fix "Fails to purge: /var/lib/dpkg/info/mdadm.postrm: 9: + /usr/share/debconf/confmodule: DEBIAN_HAS_FRONTEND: parameter not set" + undelete the set +u -u dance around the #DEBHELPER# tag (actually + reverting commit f671341b70f8edaaa63704b73fd760ef013fa504) + (Closes: #766308) + + -- Jonathan Dupart <jonat...@dupart.org> Fri, 14 Nov 2014 15:42:19 +0100 + mdadm (3.3.2-2) unstable; urgency=medium * remove more leftovers from old versions diff -Nru mdadm-3.3.2/debian/mdadm.postinst mdadm-3.3.2/debian/mdadm.postinst --- mdadm-3.3.2/debian/mdadm.postinst 2014-10-04 19:07:22.000000000 +0200 +++ mdadm-3.3.2/debian/mdadm.postinst 2014-11-14 15:41:47.000000000 +0100 @@ -108,4 +108,6 @@ [ -d /run/systemd/system ] && systemctl --system daemon-reload >/dev/null || : +# See #369953 +set +u #DEBHELPER# diff -Nru mdadm-3.3.2/debian/mdadm.postrm mdadm-3.3.2/debian/mdadm.postrm --- mdadm-3.3.2/debian/mdadm.postrm 2014-10-04 19:07:27.000000000 +0200 +++ mdadm-3.3.2/debian/mdadm.postrm 2014-11-14 15:41:47.000000000 +0100 @@ -18,4 +18,8 @@ [ -d /run/systemd/system ] && systemctl --system daemon-reload >/dev/null || : +# just in case somebody actually purges mdadm, we need this to make debconf +# (added by dh_installdebconf) behave. See #369953 +set +u #DEBHELPER# +set -u diff -Nru mdadm-3.3.2/debian/mdadm.preinst mdadm-3.3.2/debian/mdadm.preinst --- mdadm-3.3.2/debian/mdadm.preinst 2014-10-04 19:07:34.000000000 +0200 +++ mdadm-3.3.2/debian/mdadm.preinst 2014-11-14 15:41:47.000000000 +0100 @@ -42,4 +42,7 @@ *) :;; esac +# See #369953 +set +u #DEBHELPER# +set -u