error while install cuda toolkit 10.2 on ubuntu 18.04.3

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

and the content of /var/log/cuda-installer.log file is:

[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 7.4.0 (Ubuntu 7.4.0-1ubuntu1~18.04.1)

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

The driver install failed. You would need to locate the driver installer log to discover why that is. Also it looks like you had a previous driver installed from Ubuntu sources (nvidia-driver-XYZ) and you are now attempting to run the runfile installer. That is not recommended, please read the CUDA linux install guide carefully.

1 Like

I have tried other installer cluster(local). I get an error at step 20
20. cuda-cluster-runtime

I then reinstalled ubuntu 18.04 to start from a blank slate but I am still getting the identical error.

Please elaborate your answer of “…read … carefully”

Read this document carefully:

https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html

get your installers from http://www.nvidia.com/getcuda

Follow the instructions in the above document. I suggest starting with network deb install (package manager) on a fresh install of Ubuntu 18.04

The only installer type that is working is deb(local).
I was able to complete the installation with that.

1 Like

It didn’t work for me even 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.