I had the same issue but traced it with strace to the dkms task.
root      5155  5105  0 09:39 pts/3    00:00:00 /bin/sh 
/usr/lib/dkms/dkms_autoinstaller start 4.13.0-17-generic

I killed it several times before the routine finished.

The only dkms module I had installed was nvidia-384 so I removed that package 
and killed the dkms task again several times.
Then I restarted the machine to unload the stuck module and let dpkg finish 
correctly.

Later I reinstalled the nvidia package again and everyone was happy
again.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1733726

Title:
  package linux-headers-4.13.0-17-generic 4.13.0-17.20 failed to
  install/upgrade: subprocess installed post-installation script was
  killed by signal (Terminated)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1733726/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to