Reputation: 63052
I downloaded the runfile (local) for ubuntu 20.04 from Nvidia Developer site as shown Nvida Local runfile
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?
Upvotes: 6
Views: 19743
Reputation: 1
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
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
Upvotes: 0
Reputation: 3275
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.
Upvotes: 0
Reputation: 616
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.
Upvotes: 7