nvidia.ko

I’m trying to install Nvidia drivers on Ubuntu 16.04 by running NVIDIA-Linux-x86_64-390.42.run.

I recently installed gcc-7, updated ubuntu and was updating my drivers because of [url]https://askubuntu.com/questions/764227/login-loop-on-16-04-and-no-access-to-console/[/url]

I created a blacklist file under /etc/modprobe.d/blacklist-file-drivers.conf and added nouveau to the list.

Also, I ran the installation after killing my display manager (sudo service lightdm stop).

I’m getting the following error (from the installation log file):

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.

Kernel Module load error: Exec format error

You might want to see if any of the reported things to check in the error report apply to your case.

For example

  • was your kernel built with gcc-7 ?
  • did the driver get built against the correct kernel headers/sources?
  • have you properly removed nouveau? (blacklisting, by itself, is usually not enough)

I removed Ubuntu and replaced it with a commercially supported version of Linux that has professional customer support and documentation.
That worked.
B