Ubuntu: Trouble installing the latest drivers for GTX 1050

Hello.

I am running Ubuntu 18.10 on an MSI GV62-7RD machine, and the system was working fine with the NVIDIA 390 driver available from Additional Drivers menu. But I am unable to install newer driver versions available at https://www.nvidia.in/Download/index.aspx?lang=en-in.

I have tried two different versions (NVIDIA-Linux-x86_64-410.93.run and NVIDIA-Linux-x86_64-418.43.run) and encountered the exact same issues, following which, the installation failed.

Please note that I have checked all the prerequisites and dependencies, and have taken care of all the precautions, and am proceeding as per the instructions given at http://us.download.nvidia.com/XFree86/Linux-x86_64/418.43/README/index.html.

Issue 1 (minor): During initiating the setup, several prompts appear, all of which seem normal, except one, which says:

“The distribution-provided pre-install script failed! Are you sure you want to continue?”

I select “Yes”, after which the installation proceeds normally.

Issue 2 major: As the installation completes, I receive another prompt, which says:

“ERROR: Unable to load the ‘nvidia-drm’ kernel module.”

And the only option it gives is “OK”, pressing which the installer exits with a message that the installation failed.

Link to the installer log: https://drive.google.com/file/d/1sRX0cd99jrvwff_1m_eF7NQgShtLOReE/view?usp=sharing

It would be really great if someone could help me resolve this issue as soon as possible.

I would be grateful.

Best regards,
Abbas.

Those appear to be the same driver version.

For ubuntu 18.10 or any recent linux kernel on any distro, I would only recommend trying to install very recent NVIDIA drivers. 418.43 would be a good choice.

Also, your previous driver (" NVIDIA 390 driver available from Additional Drivers") is/was installed using a package manager method. You generally cannot successfully install a new driver using a driver runfile installer after you have previously installed a driver with the package manager method.

The solution is to clean out any/all old drivers, before attempting to install a new one (or reload a clean copy of the OS). I won’t be able to give you specific clean out instructions for your previous driver, as that was installed from an Ubuntu source not NVIDIA source.

Thank you for your prompt response, Robert.

Apologies for the typing error!

That’s the second version I already tried installing.

Already did that!

No support or assistance for the last two days?

That wasn’t expected from the NVIDIA team!

I even tried the latest NVIDIA-Linux-x86_64-418.56.run.

I would also like to mention that I am trying to install the drivers in rescue.target in order to avoid any conflicts with the running applications.

This time, the ERROR: Unable to load the ‘nvidia-drm’ kernel module message was accompanied with a bit more detail.

[227.245253] CPU4: Core temperature above threshold, cpu clock throttled (total events = 1)
[227.245255] CPU4: Package temperature above threshold, cpu clock throttled (total events = 1)
[227.245258] CPU6: Package temperature above threshold, cpu clock throttled (total events = 1)
[227.245260] CPU5: Package temperature above threshold, cpu clock throttled (total events = 1)
[227.245260] CPU1: Package temperature above threshold, cpu clock throttled (total events = 1)
[227.245261] CPU2: Package temperature above threshold, cpu clock throttled (total events = 1)
[227.245262] CPU7: Package temperature above threshold, cpu clock throttled (total events = 1)
[227.245263] CPU3: Package temperature above threshold, cpu clock throttled (total events = 1)
[227.245264] CPU0: Package temperature above threshold, cpu clock throttled (total events = 1)

you may need to disable secure boot

https://devtalk.nvidia.com/default/topic/1048938/cuda-setup-and-installation/need-help-to-install-cuda-on-ubuntu-18-04-dell-xps-9570-/

By disabling the secure boot, I was finally able to successfully complete the installation, but this is just a workaround and not a solution. The NVIDIA X-Server Settings works only with secure boot disabled.

Keeping the Secure Boot permanently disabled definitely leaves the system prone to a lot of other threats and problems!