Installation of cuda 11.02 driver component on ubuntu 20.04 using downloaded "run" file failed
Asked Answered
K

3

6

I downloaded the runfile (local) for ubuntu 20.04 from Nvidia Developer site as shown Nvida Local runfile

enter image description here

Then followed the instructions to run the program:

sudo sh cuda_11.3.0_465.19.01_linux.run

The installation failed: here is the error in /var/log/cuda-installer.log :

[INFO]: Driver installation detected by command: apt list --installed | grep -e nvidia-driver-[0-9][0-9][0-9] -e nvidia-[0-9][0-9][0-9]
[INFO]: Cleaning up window
[INFO]: Complete
[INFO]: Checking compiler version...
[INFO]: gcc location: /usr/bin/gcc

[INFO]: gcc version: gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04)

[INFO]: Initializing menu
[INFO]: Setup complete
[INFO]: Components to install:
[INFO]: Driver
[INFO]: 465.19.01
[INFO]: Executing NVIDIA-Linux-x86_64-465.19.01.run --ui=none --no-questions --accept-license --disable-nouveau --no-cc-version-check --install-libglvnd  2>&1
[INFO]: Finished with code: 256
[ERROR]: Install of driver component failed.
[ERROR]: Install of 465.19.01 failed, quitting

There are no further indications of what failed or instructions of what to do. What can/should be done next to move forward?

Kiddush answered 25/4, 2021 at 20:1 Comment(0)
D
7

Besides the CUDA log file, there is also a driver log file, which will be created typically at /var/log/nvidia-installer.log .

The CUDA installer calls the driver installer, which writes log of the driver installation in that file, so when the driver installer fails, you may get more details about the error from there.

Source: NVidia developer forum

By the way, in my case, the driver installer failed because the X server was running. Stopping the X server before the driver installation fixed the problem for me.

Deification answered 27/4, 2021 at 14:42 Comment(2)
Thx I'll look into theseKiddush
I also have issues with failures due to the X server running. To stop the X server I've used the answer from unix.stackexchange.com/a/441811/199224, which just involves running: sudo systemctl isolate multi-user.target.Yeo
C
0

Check /var/log/nvidia-installer.log for all details.

In my case, secure boot was enabled so it stopped installation.

The kernel module failed to load. Secure boot is enabled on this system, so this is likely because it was not signed by a key that is trusted by the kernel. Please try installing the driver again, and sign the kernel module when prompted to do so.

Use this link to install with secure boot.

Cornerwise answered 22/10, 2021 at 5:39 Comment(0)
B
0

The problems arise due to the X server. I quit it and followed the following. My system is working successfully.....

ERROR "ERROR: You appear to be running an X server; please exit X before installing. For further details, please see the section INSTALLING THE NVIDIA DRIVER in the README available on the Linux driver download page at www.nvidia.com. 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. "

Solution.....


Using Ubuntu 22.04.4 LTS To install run the following command:

sudo add-apt-repository ppa:graphics-drivers/ppa This will automatically update the repositories and then you can run the following line:

sudo apt install nvidia-driver-440 If your desktop does not load after installing the corresponding driver, then do the following:

sudo nano /etc/gdm3/custom.conf then remove the comment (# symbol) from the line that says

WaylandEnable=false

and save. Then reboot. If this still does not work, then please disable Secure Boot since you might actually be using UEFI.

reference link:https://askubuntu.com/questions/61396/how-do-i-install-the-nvidia-drivers

Berenice answered 12/5 at 8:37 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.