I've found appropriate solution for this problem (if you want to continue use nvidia-340 driver):
- just install 4.9 kernel (or 4.14 if you need newer kernel) and problem solved. On kernel 4.9 nvidia-340 module build process passed without any problems. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1742449 Title: nvidia-340.104 dkms fails to build against 4.13.0-26 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-340/+bug/1742449/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs