CUDA install failed

my environment is as follows:
system: ubuntu 16.04.6
uname -r: 4.15.0-66-generic
GeForce GTX 1080 Ti

after download cuda 10.1, when installing using the command:

sudo sh cuda_10.1.243_418.87.00_linux.run

I got the error:

Installation failed. See log at /var/log/cuda-installer.log for details.

and the log is:
[INFO]: Driver not installed.
[INFO]: Checking compiler version…
[INFO]: gcc location: /usr/bin/gcc

[INFO]: gcc version: gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.11)

[INFO]: Initializing menu
[INFO]: Setup complete
[INFO]: Components to install:
[INFO]: Driver
[INFO]: 418.87.00
[INFO]: Executing NVIDIA-Linux-x86_64-418.87.00.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 418.87.00 failed, quitting

Can anyone tell me, is there anything wrong?
I use SSH via Mac to connect the ubuntu server, so the Nouveau is already disabled.
Thank you!

you may need to disable secure boot

I ran into similar issue. Below is output of file cuda-installer.log

[i]
[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 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.11)

[INFO]: Initializing menu
[INFO]: Setup complete
[INFO]: Components to install:
[INFO]: Driver
[INFO]: 418.87.00
[INFO]: Executing NVIDIA-Linux-x86_64-418.87.00.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 418.87.00 failed, quitting[/i]

Apparently, my secure boot is already disabled.

But I noticed getting warning that my /root is almost full. It has around 4GB of free space. Could that be an issue?

Please provide any insights regarding this issue.

Thanks.

I borrowed an keyboard and took my displayer, went to the machine room. Installed over there. Then the problem was solved.

I think that “ssh over mac” may have some limitation.

It didn’t work for me in front of the server, so I had to solve this bug installing through “Ubuntu Advanced mode”:

$ reboot

then: F8
then: Advanced options for Ubuntu
then: Ubuntu… (recovery mode)
then: root Drop to root shell prompt
then: (in command line):

$ sudo sh cuda_11.0.3_450.51.06_linux.run
$ reboot

It seems the installer is not able to install when you have previous installations for graphics (even Nouveau). So the solution is as easy as loading the operative system in recovery mode.

1 Like