Linux is unable to load driver kernel modules. Exec format error

Hi, I am not able to properly install the nvidia drivers 390.30 + cuda 9.1 on a machine with Titan V and Geforce 1080.
The machine is running Ubuntu 16.04 with kernel 4.4.0-116-generic.

I have attempted the installation many times now
before each installation, I ran
sudo apt purge nvidia*
sudo apt purge cuda*

however, the drivers were never installed correctly.

I am using the network .deb installer.
first, I install the package nvidia-390, then reboot.
then I install cuda-9-1

nvidia-smi reports: NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

sudo modprobe nvidia reports: modprobe: ERROR: could not insert ‘nvidia_390’: Exec format error

The linux headers are installed correctly: linux-headers-4.4.0-116-generic is already the newest version (4.4.0-116.140).

Could somebody tell me how to fix this?

from a clean install, using the network .deb, just follow the instructions. There is no need to install the driver first.

just

sudo apt-get install cuda

1 Like

downgrade kernel to linux-headers-4.4.0-112-generic. And reinstall driver, work!