I have a NVIDIA Quadro 600 and used to have an Nvidia driver v387.26 installed on my Ubuntu 16.04 machine until a few days ago when Ubuntu detected the drivers as useless packages and got them uninstalled when I did an autoremove command (huge mistake!). Now I am trying to reinstall the same version of driver, but constantly get this error:
ERROR: Unable to load the kernel module ‘nvidia.ko’. This happens most frequently when this kernel module was built against the wrong or improperly configured kernel sources, with a version of gcc that differs from the one used to build the target kernel, or if a driver such as rivafb, nvidiafb, or nouveau is present and prevents the NVIDIA kernel module from obtaining ownership of the NVIDIA graphics device(s), or no NVIDIA GPU installed in this system is supported by this NVIDIA Linux graphics driver release.
In an effort to pin point where the problem is coming from, I checked my version of gcc which is 5.4.0. Then, in my blacklist.conf file in /etc/modprob.d, I already have:
blacklist vga16fb
blacklist nouveau
blacklist rivafb
blacklist nvidiafb
blacklist rivatv
blacklist lbm-nouveau
alias nouveau off
alias lbm-nouveau off
options nouveau modeset=0
The last segment of nvidia-installer.log is
[ 17.508056] input: PS/2 Generic Mouse as /devices/platform/i8042/serio1/input/input4
[ 260.918127] [drm] Initialized drm 1.1.0 20060810
[ 260.953440] ipmi message handler version 39.2
[ 260.962082] nvidia: version magic '4.4.0-116-generic SMP mod_unload modversions ' should be '4.4.0-116-generic SMP mod_unload modversions retpoline '
[ 595.950385] [drm] Initialized drm 1.1.0 20060810
[ 595.981152] ipmi message handler version 39.2
[ 595.990135] nvidia: version magic '4.4.0-116-generic SMP mod_unload modversions ' should be '4.4.0-116-generic SMP mod_unload modversions retpoline '
ERROR: Installation has failed. Please see the file '/var/log/nvidia-installer.log' for details. You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com.
Is this the problem where it says that “4.4.0-116-generic SMP mod_unload modversions” should be “4.4.0-116-generic SMP mod_unload modversions retpoline”? If so, does anyone have any idea how to solve this issue?