Encountered the same bug today. Resorted to killing the madm process.
```
pstree of apt at the time:
dpkg───initramfs-tools───update-initramf───mkinitramfs───mdadm───mkconf───mdadm
```
```
sudo dpkg --configure -a
Setting up initramfs-tools (0.122ubuntu8.13) ...
update-initramfs: deferring update
Status changed to 'Confirmed' because the bug affects multiple users.
** Changed in: ubuntu
Status: New => Confirmed
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1614462
Title:
apt-get upgr
Not sure where it's hanging, but not in apt.
** Package changed: apt (Ubuntu) => ubuntu
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1614462
Title:
apt-get upgrade hangs on Xenial
To manage notif
I killed it and tried "sudo dpkg --configure -a", and the same thing
repeats itself !
sudo dpkg --configure -a
Setting up zfs-doc (0.6.5.6-0ubuntu12) ...
Setting up libuutil1linux (0.6.5.6-0ubuntu12) ...
Setting up language-selector-common (0.165.4) ...
Setting up initramfs-tools (0.122ubuntu8.1)
** Attachment added: "dpkg log"
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1614462/+attachment/4723694/+files/dpkg.log
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1614462
Title:
apt-ge