I've encountered the same problem, but your fix does not work for me. When trying to autoinstall the ubuntu-drivers I get:
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem. But the dpkg command just hangs on: Setting up linux-image-4.13.0-19-generic (4.13.0-19.22) ... Running depmod. update-initramfs: deferring update (hook will be called later) The link /initrd.img is a dangling linkto /boot/initrd.img-4.13.0-19-generic vmlinuz(/boot/vmlinuz-4.13.0-19-generic ) points to /boot/vmlinuz-4.13.0-19-generic (/boot/vmlinuz-4.13.0-19-generic) -- doing nothing at /var/lib/dpkg/info/linux-image-4.13.0-19-generic.postinst line 491. Examining /etc/kernel/postinst.d. run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.13.0-19-generic /boot/vmlinuz-4.13.0-19-generic run-parts: executing /etc/kernel/postinst.d/dkms 4.13.0-19-generic /boot/vmlinuz-4.13.0-19-generic -- 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/1737133 Title: package linux-image-4.13.0-19-generic 4.13.0-19.22 failed to install/upgrade: subprocess installed post-installation script was killed by signal (Terminated) Status in linux package in Ubuntu: Confirmed Bug description: Installation of automatic update keeps to fail/hang. Manually executing the postinst script hangs here: $ sudo /usr/bin/perl /var/lib/dpkg/info/linux-image-4.13.0-19-generic.postinst configure Running depmod. update-initramfs: Generating /boot/initrd.img-4.13.0-19-generic initrd.img(/boot/initrd.img-4.13.0-19-generic ) points to /boot/initrd.img-4.13.0-19-generic (/boot/initrd.img-4.13.0-19-generic) -- doing nothing at /var/lib/dpkg/info/linux-image-4.13.0-19-generic.postinst line 491. vmlinuz(/boot/vmlinuz-4.13.0-19-generic ) points to /boot/vmlinuz-4.13.0-19-generic (/boot/vmlinuz-4.13.0-19-generic) -- doing nothing at /var/lib/dpkg/info/linux-image-4.13.0-19-generic.postinst line 491. Examining /etc/kernel/postinst.d. run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.13.0-19-generic /boot/vmlinuz-4.13.0-19-generic run-parts: executing /etc/kernel/postinst.d/dkms 4.13.0-19-generic /boot/vmlinuz-4.13.0-19-generic Possibly a DKMS issue with nvidia drivers. ProblemType: Package DistroRelease: Ubuntu 17.10 Package: linux-image-4.13.0-19-generic 4.13.0-19.22 ProcVersionSignature: Ubuntu 4.13.0-17.20-generic 4.13.8 Uname: Linux 4.13.0-17-generic x86_64 NonfreeKernelModules: nvidia_uvm nvidia_drm nvidia_modeset nvidia ApportVersion: 2.20.7-0ubuntu3.5 Architecture: amd64 AudioDevicesInUse: USER PID ACCESS COMMAND /dev/snd/controlC0: gdm 1825 F.... pulseaudio dave 4654 F.... pulseaudio Date: Fri Dec 8 10:50:41 2017 ErrorMessage: subprocess installed post-installation script was killed by signal (Terminated) InstallationDate: Installed on 2017-11-10 (27 days ago) InstallationMedia: Ubuntu 17.10 "Artful Aardvark" - Alpha amd64 (20170926) MachineType: LENOVO F0C20011MZ ProcFB: 0 inteldrmfb ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.13.0-17-generic.efi.signed root=UUID=67079586-555b-453d-915b-90fed825fefd 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. Python3Details: /usr/bin/python3.6, Python 3.6.3, python3-minimal, 3.6.3-0ubuntu2 PythonDetails: /usr/bin/python2.7, Python 2.7.14, python-minimal, 2.7.14-2ubuntu1 RelatedPackageVersions: grub-pc N/A SourcePackage: linux Title: package linux-image-4.13.0-19-generic 4.13.0-19.22 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: 06/30/2017 dmi.bios.vendor: LENOVO dmi.bios.version: O29KT21AUS dmi.board.name: 3647 dmi.board.vendor: LENOVO dmi.board.version: SDK0J40709 WIN 3259605522151 dmi.chassis.type: 13 dmi.chassis.vendor: LENOVO dmi.chassis.version: None dmi.modalias: dmi:bvnLENOVO:bvrO29KT21AUS:bd06/30/2017:svnLENOVO:pnF0C20011MZ:pvrideacentreAIO910-27ISH:rvnLENOVO:rn3647:rvrSDK0J40709WIN3259605522151:cvnLENOVO:ct13:cvrNone: dmi.product.family: ideacentre AIO 910-27ISH dmi.product.name: F0C20011MZ dmi.product.version: ideacentre AIO 910-27ISH dmi.sys.vendor: LENOVO To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1737133/+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