New to the Ubuntu community & issue tracker so apologies if this comment should go elsewhere.
I am seeing the same behavior on Ubuntu 18.04.3 LTS (bionic) after following the procedure for compiling a new kernel at https://help.ubuntu.com/lts/installation-guide/amd64/ch08s06.html. The compile completes successfully but installation fails when running sudo dpkg -i ../linux-image...deb. After adding "set -x" to /etc/kernel/postinst.d/x-grub-legacy-ec2 and /usr/sbin/update-grub-legacy-ec2, it looks like the /usr/sbin/update- grub-legacy-ec2 script is failing in the ucf_update_kernels function. RET='20 Unsupported command "*" (full line was " * dkms: running auto installation service for kernel 4.15.18custom") received from confmodule.' -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1838839 Title: Install of custom kernel fails after recent dkms update To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/dkms/+bug/1838839/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs