I have the same problem and I came to same conclusion that it was nvidia-common ... upon trying to figure out what package it came from... it comes from "nvidia-common" (quite simple).
The weird thing is I didn't have that package installed.. so I installed it (and it also flagged other modaliases for different nvidia driver versions) ... then removed nvidia-common and the modaliases for the versions I didn't need (I must use 173.x as I have legacy nvidia hardware). That should remove the nvidia-common script in /etc/kernel/postinst.d (could also remove it manually or what I did early on to work-around: "chmod -x nvidia-common" to disable it from running). Make sure you have nvidia-common package installed (--reinstalled) if you need it or removed properly if not using it. That seems to fix it for me. I suspect there is an issue with properly installed/removing that package. If you are still having problems and you reinstalled the package... try removing execute permissions from that script before installing your custom kernel via the .deb method! --Doug -- dkms - error when installing custom kernel https://bugs.launchpad.net/bugs/292606 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs