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) ...
update-initramfs: deferring update (trigger activated)
Setting up libnvpair1linux (0.6.5.6-0ubuntu12) ...
Setting up snapd (2.12+0.16.04) ...
Setting up libpq5:amd64 (9.5.4-1.pgdg16.04+1) ...
Setting up postgresql-doc-9.5 (9.5.4-1.pgdg16.04+1) ...
Setting up postgresql-client-9.5 (9.5.4-1.pgdg16.04+1) ...
Setting up postgresql-9.5 (9.5.4-1.pgdg16.04+1) ...
Setting up python3-software-properties (0.96.20.3) ...
Setting up linux-firmware (1.157.3) ...
Setting up libapparmor-perl (2.10.95-0ubuntu2.2) ...
Setting up python3-distupgrade (1:16.04.16) ...
Setting up software-properties-common (0.96.20.3) ...
Setting up libzpool2linux (0.6.5.6-0ubuntu12) ...
Setting up apparmor (2.10.95-0ubuntu2.2) ...
Installing new version of config file /etc/apparmor.d/abstractions/dbus-session-strict ...
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
Files /var/lib/dpkg/info/apparmor.md5sums and /var/lib/apparmor/profiles/.apparmor.md5sums differ
Setting up ubuntu-release-upgrader-core (1:16.04.16) ...
Setting up libzfs2linux (0.6.5.6-0ubuntu12) ...
Setting up postgresql-contrib-9.5 (9.5.4-1.pgdg16.04+1) ...
Setting up zfsutils-linux (0.6.5.6-0ubuntu12) ...
Installing new version of config file /etc/cron.d/zfsutils-linux ...
zfs-import-cache.service is a disabled or a static unit, not starting it.
zfs-import-scan.service is a disabled or a static unit, not starting it.
zfs-mount.service is a disabled or a static unit, not starting it.
Processing triggers for initramfs-tools (0.122ubuntu8.1) ...
update-initramfs: Generating /boot/initrd.img-4.4.0-34-generic
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
****it is hanging here, no further output****
I killed it and tried "sudo dpkg --configure -a", and the same thing repeats itself !
sudo dpkg --configure -a selector- common (0.165.4) ... 1.pgdg16. 04+1) ... 1.pgdg16. 04+1) ... client- 9.5 (9.5.4- 1.pgdg16. 04+1) ... 1.pgdg16. 04+1) ... software- properties (0.96.20.3) ... 0ubuntu2. 2) ... properties- common (0.96.20.3) ... 0ubuntu2. 2) ... d/abstractions/ dbus-session- strict ... d/disable: usr.sbin.rsyslogd dpkg/info/ apparmor. md5sums and /var/lib/ apparmor/ profiles/ .apparmor. md5sums differ release- upgrader- core (1:16.04.16) ... contrib- 9.5 (9.5.4- 1.pgdg16. 04+1) ... d/zfsutils- linux ... cache.service is a disabled or a static unit, not starting it. scan.service is a disabled or a static unit, not starting it. img-4.4. 0-34-generic mdadm.conf defines no arrays.
Setting up zfs-doc (0.6.5.6-0ubuntu12) ...
Setting up libuutil1linux (0.6.5.6-0ubuntu12) ...
Setting up language-
Setting up initramfs-tools (0.122ubuntu8.1) ...
update-initramfs: deferring update (trigger activated)
Setting up libnvpair1linux (0.6.5.6-0ubuntu12) ...
Setting up snapd (2.12+0.16.04) ...
Setting up libpq5:amd64 (9.5.4-
Setting up postgresql-doc-9.5 (9.5.4-
Setting up postgresql-
Setting up postgresql-9.5 (9.5.4-
Setting up python3-
Setting up linux-firmware (1.157.3) ...
Setting up libapparmor-perl (2.10.95-
Setting up python3-distupgrade (1:16.04.16) ...
Setting up software-
Setting up libzpool2linux (0.6.5.6-0ubuntu12) ...
Setting up apparmor (2.10.95-
Installing new version of config file /etc/apparmor.
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
Skipping profile in /etc/apparmor.
Files /var/lib/
Setting up ubuntu-
Setting up libzfs2linux (0.6.5.6-0ubuntu12) ...
Setting up postgresql-
Setting up zfsutils-linux (0.6.5.6-0ubuntu12) ...
Installing new version of config file /etc/cron.
zfs-import-
zfs-import-
zfs-mount.service is a disabled or a static unit, not starting it.
Processing triggers for initramfs-tools (0.122ubuntu8.1) ...
update-initramfs: Generating /boot/initrd.
W: mdadm: /etc/mdadm/
****it is hanging here, no further output****