I let the hung process sit for some hours (2-4) and when I came back I found the following logged to the console:
sudo dpkg --configure -a Setting up linux-image-extra-4.8.0-44-generic (4.8.0-44.47) ... run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.8.0-44-generic /boot/vmlinuz-4.8.0-44-generic run-parts: executing /etc/kernel/postinst.d/dkms 4.8.0-44-generic /boot/vmlinuz-4.8.0-44-generic rm: cannot remove '/var/lib/dkms/nvidia-375/375.39/build': Directory not empty ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/nvidia-375.0.crash' Error! Patch buildfix_kernel_4.10.patch as specified in dkms.conf cannot be found in /var/lib/dkms/nvidia-375/375.39/build/patches/. run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.8.0-44-generic /boot/vmlinuz-4.8.0-44-generic update-initramfs: Generating /boot/initrd.img-4.8.0-44-generic run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.8.0-44-generic /boot/vmlinuz-4.8.0-44-generic run-parts: executing /etc/kernel/postinst.d/update-notifier 4.8.0-44-generic /boot/vmlinuz-4.8.0-44-generic run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.8.0-44-generic /boot/vmlinuz-4.8.0-44-generic Generating grub configuration file ... Found linux image: /boot/vmlinuz-4.8.0-44-generic Found initrd image: /boot/initrd.img-4.8.0-44-generic Found linux image: /boot/vmlinuz-4.8.0-41-generic Found initrd image: /boot/initrd.img-4.8.0-41-generic Found linux image: /boot/vmlinuz-4.8.0-39-generic Found initrd image: /boot/initrd.img-4.8.0-39-generic Found linux image: /boot/vmlinuz-4.8.0-26-generic Found initrd image: /boot/initrd.img-4.8.0-26-generic Found linux image: /boot/vmlinuz-3.19.0-33-generic Found initrd image: /boot/initrd.img-3.19.0-33-generic Found Windows Boot Manager on /dev/sda1@/EFI/Microsoft/Boot/bootmgfw.efi Adding boot menu entry for EFI firmware configuration done Setting up linux-signed-image-generic (4.8.0.44.56) ... Setting up linux-headers-4.8.0-44-generic (4.8.0-44.47) ... Examining /etc/kernel/header_postinst.d. run-parts: executing /etc/kernel/header_postinst.d/dkms 4.8.0-44-generic /boot/vmlinuz-4.8.0-44-generic Setting up man-db (2.7.5-1) ... Updating database of manual pages ... Setting up linux-image-generic (4.8.0.44.56) ... Setting up linux-headers-generic (4.8.0.44.56) ... Setting up linux-signed-generic (4.8.0.44.56) ... Setting up linux-generic (4.8.0.44.56) ... The mentioned crash report contained: cat /var/crash/nvidia-375.0.crash ProblemType: Package DKMSKernelVersion: 4.8.0-44-generic Date: Wed Mar 29 01:54:24 2017 Package: nvidia-375 375.39-0ubuntu0.16.10.1 PackageVersion: 375.39-0ubuntu0.16.10.1 SourcePackage: nvidia-graphics-drivers-375 Title: nvidia-375 375.39-0ubuntu0.16.10.1: nvidia-375 kernel module failed to build -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1675674 Title: package linux-image-4.8.0-44-generic 4.8.0-44.47 failed to install/upgrade: subprocess installed post-installation script was killed by signal (Terminated) Status in linux package in Ubuntu: Incomplete Bug description: Installation of this package using apt hangs at 'run-parts: executing /etc/kernel/postinst.d/dkms 4.8.0-44-generic /boot/vmlinuz-4.8.0-44-generic' with no process activity observable by htop or others. killing the process and running 'dpkg --configure -a' hangs at the same position, 'apt purge *4.8.0-44*' hangs at the same position. I remember this happening before for a different kernel but can't remember which. Please tell me if and which information is needed additionally to the automatic collected data. ProblemType: Package DistroRelease: Ubuntu 16.10 Package: linux-image-4.8.0-44-generic 4.8.0-44.47 ProcVersionSignature: Ubuntu 4.8.0-42.45-generic 4.8.17 Uname: Linux 4.8.0-42-generic x86_64 NonfreeKernelModules: nvidia_uvm nvidia_drm nvidia_modeset nvidia ApportVersion: 2.20.3-0ubuntu8.2 AptOrdering: NULL: ConfigurePending Architecture: amd64 AudioDevicesInUse: USER PID ACCESS COMMAND /dev/snd/controlC0: gdm 2192 F.... pulseaudio dirk 2537 F.... pulseaudio /dev/snd/controlC1: gdm 2192 F.... pulseaudio dirk 2537 F.... pulseaudio Date: Fri Mar 24 09:11:44 2017 ErrorMessage: subprocess installed post-installation script was killed by signal (Terminated) HibernationDevice: RESUME=UUID=016cefa8-4e13-45c6-a877-ddbc86b78741 InstallationDate: Installed on 2017-01-15 (67 days ago) InstallationMedia: Ubuntu-GNOME 16.04 LTS "Xenial Xerus" - Release amd64 (20160421) MachineType: LENOVO 80NV ProcFB: 0 inteldrmfb 1 evdidrmfb ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.8.0-42-generic root=UUID=7ebecb7d-79da-41a5-84bd-68400bda8190 ro quiet splash vt.handoff=7 PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No PulseAudio daemon running, or not running as session daemon. RelatedPackageVersions: grub-pc 2.02~beta2-36ubuntu11 SourcePackage: linux Title: package linux-image-4.8.0-44-generic 4.8.0-44.47 failed to install/upgrade: subprocess installed post-installation script was killed by signal (Terminated) UpgradeStatus: No upgrade log present (probably fresh install) dmi.bios.date: 11/12/2015 dmi.bios.vendor: LENOVO dmi.bios.version: CDCN27WW dmi.board.asset.tag: NO Asset Tag dmi.board.name: Allsparks 5A dmi.board.vendor: LENOVO dmi.board.version: NO DPK dmi.chassis.asset.tag: NO Asset Tag dmi.chassis.type: 10 dmi.chassis.vendor: LENOVO dmi.chassis.version: Lenovo ideapad Y700-15ISK dmi.modalias: dmi:bvnLENOVO:bvrCDCN27WW:bd11/12/2015:svnLENOVO:pn80NV:pvrLenovoideapadY700-15ISK:rvnLENOVO:rnAllsparks5A:rvrNODPK:cvnLENOVO:ct10:cvrLenovoideapadY700-15ISK: dmi.product.name: 80NV dmi.product.version: Lenovo ideapad Y700-15ISK dmi.sys.vendor: LENOVO To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1675674/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp