Your message dated Tue, 02 Dec 2014 09:22:07 +0000
with message-id <e1xvjep-0001ub...@franck.debian.org>
and subject line Bug#766308: fixed in mdadm 3.3.2-3
has caused the Debian Bug report #766308,
regarding Fails to purge: /var/lib/dpkg/info/mdadm.postrm: 9:
/usr/share/debconf/confmodule: DEBIAN_HAS_FRONTEND: parameter not set
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
766308: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=766308
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: mdadm
Version: 3.3.2-2
Severity: serious
SUMMARY: "set -u" breaks debconf. You can't have it in effect in your
postrm when sourcing it.
DETAILS:
root@Heisenberg:~# dpkg --purge mdadm
(Reading database ... 313312 files and directories currently installed.)
Removing mdadm (3.3.2-2) ...
Purging configuration files for mdadm (3.3.2-2) ...
/var/lib/dpkg/info/mdadm.postrm: 9: /usr/share/debconf/confmodule:
DEBIAN_HAS_FRONTEND: parameter not set
dpkg: error processing package mdadm (--purge):
subprocess installed post-removal script returned error exit status 2
Errors were encountered while processing:
mdadm
root@Heisenberg:~#
Adding set -x to the top of the postrm (editing the file in
/var/lib/dpkg/info), shows that it's blowing up here:
# Automatically added by dh_installdebconf
if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
---> . /usr/share/debconf/confmodule <---
db_purge
fi
And that's because you have "set -ue" at the top of the script, the -u
being the problem. Once I remove that, the package purges successfully.
-- System Information:
Debian Release: jessie/sid
APT prefers testing
APT policy: (500, 'testing'), (150, 'unstable'), (125, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.16-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages mdadm depends on:
ii debconf 1.5.53
ii initscripts 2.88dsf-53.4
ii libc6 2.19-11
ii lsb-base 4.1+Debian13
ii udev 215-5+b1
Versions of packages mdadm recommends:
ii exim4-daemon-light [mail-transport-agent] 4.84-2
ii module-init-tools 18-3
mdadm suggests no packages.
--- End Message ---
--- Begin Message ---
Source: mdadm
Source-Version: 3.3.2-3
We believe that the bug you reported is fixed in the latest version of
mdadm, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 766...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Michael Tokarev <m...@tls.msk.ru> (supplier of updated mdadm package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Fri, 28 Nov 2014 09:55:14 +0300
Source: mdadm
Binary: mdadm mdadm-udeb
Architecture: source amd64
Version: 3.3.2-3
Distribution: unstable
Urgency: medium
Maintainer: Debian mdadm maintainers <pkg-mdadm-de...@lists.alioth.debian.org>
Changed-By: Michael Tokarev <m...@tls.msk.ru>
Description:
mdadm - tool to administer Linux MD arrays (software RAID)
mdadm-udeb - tool to administer Linux MD arrays (software RAID) (udeb)
Closes: 764036 764647 766308 766416
Changes:
mdadm (3.3.2-3) unstable; urgency=medium
.
* remove /var/lib/mdadm dir in postinst to clean up from old pkg,
remove config files on purge (restore extraneous cleanup from
last change) (Closes: #764036)
* remove set -u (error on unset variables) from maintscripts
(Closes: #766308)
* rebuildmap-strip-local-host-name-from-device-name.patch - a patch
from upstream fixing a bug when mdadm have to re-create device
nodes after assembling arrays (eg, when switching from initramfs
without preserving /dev and /run), to choose the same device names
as when doing inital assembly
* readlink-path.patch: readlink is in /bin not /usr/bin on debian
(Closes: #766416)
* mdmonitor-service-simplify.diff: simplify mdmonitor.service
systemd file, do not try to read non-existing files (Closes: #764647)
Checksums-Sha1:
b35d0b9ae4391a5cff56722b4907749c672a1b58 1626 mdadm_3.3.2-3.dsc
92d38849bef713e08ca42b86b3c7afda0445f920 86408 mdadm_3.3.2-3.debian.tar.xz
247163739b04e078378cd7f93b9ced9fc703cf71 432110 mdadm_3.3.2-3_amd64.deb
f85f2499d701351a5f7b2faf90535dace483b92d 252724 mdadm-udeb_3.3.2-3_amd64.udeb
Checksums-Sha256:
e96aa75978583dc868d39eeab7689e8477564476a801ab66b67f3dc9663810c1 1626
mdadm_3.3.2-3.dsc
005403acda4738baaf2cb6d6bfc2c92d07ee618bd15326325c3fb30e7bddec1c 86408
mdadm_3.3.2-3.debian.tar.xz
1c6daaea2f2083bb1f9216148929fe9b66e81be757b26d1738d69a8210607abe 432110
mdadm_3.3.2-3_amd64.deb
f2cc81d136e5032530f544e35f71a4553a156961d2a704aeddc30baf2cfe34f1 252724
mdadm-udeb_3.3.2-3_amd64.udeb
Files:
96011d3dbef3c317487f69e6108938f6 1626 admin optional mdadm_3.3.2-3.dsc
0528c540a8da25759f46eeb02d62ad78 86408 admin optional
mdadm_3.3.2-3.debian.tar.xz
793b276b84be1e92f02fc894fe146b8c 432110 admin optional mdadm_3.3.2-3_amd64.deb
0e8ca8ea698cf507bcd2ca0fc06e997a 252724 debian-installer optional
mdadm-udeb_3.3.2-3_amd64.udeb
Package-Type: udeb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iQEcBAEBAgAGBQJUfXzmAAoJEL7lnXSkw9fbFncH/38NmNNSKXCSFiK3CoFGJZFl
20krUUgAKKhyL4gHf9sPnaiL0NZuNOfneLAxjFBpCKToBSgfFikjr64gwEVy4QgU
3cjujcmwjsNb6rJeb3rcPkIDR3RMmamCakrHRACIZVr8rA1BlvkXBF0BQAIzYMZb
R2s26OkpIUWGsX51PM9DBNYexPrTzfv4G7KYil4tv9uz1bH+LVjA3S0FIwfOMtfU
reQAk+szUuX1VQKA9xoBHQO92wuLOKYW7D2h42qB17R4pKt5DoDSPNV6ICv+hLxw
EV/KWw0KfaMRJsjMBxwJdTYs1Q4Qt4NHguQgYdIWULpbu2DueiD/C69pifcgOyQ=
=DBlk
-----END PGP SIGNATURE-----
--- End Message ---