Same error, happened to me while updating software, which included the kernel update 4.15.0-24. I had (and have till I reboot) version 4.13.0-45.
I had a similar issue a while ago, also related to updating the kernel, which rendered the Nvidia driver unusable for a few days until the driver was updated for the new kernel version (bug link: https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics- drivers-340/+bug/1741671). Quadro FX880M. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1779829 Title: nvidia-340 340.104-0ubuntu0.16.04.1: nvidia-340 kernel module failed to build To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-340/+bug/1779829/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs