I ended up kill -9'ing the process. and eventually it went on (not even
recording an error).
Then the subsequent 'apt-get autoremove' hung again.
Reading package lists...
Building dependency tree...
Reading state information...
The following packages will be REMOVED:
linux-headers-4.4.0-96
** Description changed:
I've run a dist-upgrade on a system with mdadm installed:
It hangs like this:
+ Setting up iproute2 (4.3.0-1ubuntu3.16.04.2) ...
+ Setting up resolvconf (1.78ubuntu5) ...
+ Setting up lshw (02.17-1.1ubuntu3.4) ...
+ Setting up golang-1.6-src