Trouble downloading CUDA Toolkit 9.0 - Ubuntu 18.04. 'Driver: Not selected'

I am attempting to download CUDA 9.0 for the purpose of setting up Tensorflow-gpu. I have downloaded the file from the archive and used the following commands:

sudo chmod +x cuda_9.0.176_384.81_linux.run ./cuda_9.0.176_384.81_linux.run --override

I agree to the terms and conditions, then I follow the prompts:

‘’’’’’’’’’’’
Do you accept the previously read EULA?
accept/decline/quit: Do you accept the previously read EULA?
accept/decline/quit: accept

You are attempting to install on an unsupported configuration. Do you wish to continue?
(y)es/(n)o [ default is no ]: y

Install NVIDIA Accelerated Graphics Driver for Linux-x86_64 384.81?
(y)es/(n)o/(q)uit: n

Install the CUDA 9.0 Toolkit?
(y)es/(n)o/(q)uit: y

Enter Toolkit Location
[ default is /usr/local/cuda-9.0 ]:

/usr/local/cuda-9.0 is not writable.
Do you wish to run the installation with ‘sudo’?
(y)es/(n)o: y

Please enter your password:
Do you want to install a symbolic link at /usr/local/cuda?
(y)es/(n)o/(q)uit: y

Install the CUDA 9.0 Samples?
(y)es/(n)o/(q)uit: y

Enter CUDA Samples Location
[ default is /home/belford_pm ]:

Installing the CUDA Toolkit in /usr/local/cuda-9.0 …
Installing the CUDA Samples in /home/belford_pm …
Copying samples to /home/belford_pm/NVIDIA_CUDA-9.0_Samples now…
Finished copying samples.

===========
= Summary =

Driver: Not Selected
Toolkit: Installed in /usr/local/cuda-9.0
Samples: Installed in /home/belford_pm

Please make sure that

  • PATH includes /usr/local/cuda-9.0/bin
  • LD_LIBRARY_PATH includes /usr/local/cuda-9.0/lib64, or, add /usr/local/cuda-9.0/lib64 to /etc/ld.so.conf and run ldconfig as root

To uninstall the CUDA Toolkit, run the uninstall script in /usr/local/cuda-9.0/bin

Please see CUDA_Installation_Guide_Linux.pdf in /usr/local/cuda-9.0/doc/pdf for detailed information on setting up CUDA.

***WARNING: Incomplete installation! This installation did not install the CUDA Driver. A driver of version at least 384.00 is required for CUDA 9.0 functionality to work.
To install the driver using this installer, run the following command, replacing with the name of this run file:
sudo .run -silent -driver

‘’’’’’’’’’’’

There are a lot of errors here, but the one I do not understand is why a driver has not been selected. Typing ‘nvidia-smi’ shows me that I have a driver:

±----------------------------------------------------------------------------+
| NVIDIA-SMI 390.116 Driver Version: 390.116 |
|-------------------------------±---------------------±---------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 Quadro P1000 Off | 00000000:01:00.0 Off | N/A |
| N/A 54C P0 N/A / N/A | 531MiB / 4040MiB | 1% Default |
±------------------------------±---------------------±---------------------+

±----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 1128 G /usr/lib/xorg/Xorg 278MiB |
| 0 1401 G /usr/bin/gnome-shell 101MiB |
| 0 1831 G …quest-channel-token=1790166115024653071 117MiB |
| 0 3576 G …quest-channel-token=6160179458185199838 31MiB |
±----------------------------------------------------------------------------+

I have even tried to update/install the driver again (with no error messages.

If someone can help me with this, I would very much appreciate it.

Driver is not selected because you already have one installed from the ubuntu repo. Don’t use the .run installer to install another driver over the system provided one. Everything should be fine.

Thanks for the response! So do you recommend following this guide:

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

without using the '.run. file?

No, I’d rather recommend using the driver from repo/ppa and then use the cuda deb to install just the cuda-toolkit, not the whole bundle, i.e.
do all the steps but not
sudo apt install cuda
instead, run
sudo apt install cuda-toolkit-10-1
(replace 10-1 with the version you want to install)

Thank you so much! It worked!

Hello,
I want to download cuda, cudnn, tensorflow on ubuntu 18.04. Whenever I follow the instructions that recommenned by everyone on over the net, I see the same problem at the end of downloading. It is like that :

***WARNING: Incomplete installation! This installation did not install the CUDA Driver. A driver of version at least 384.00 is required for CUDA 9.0 functionality to work.
To install the driver using this installer, run the following command, replacing with the name of this run file:
sudo .run -silent -driver

As much as I can understand,
sudo chmod +x cuda_9.0.176_384.81_linux.run
./cuda_9.0.176_384.81_linux.run --override
instead,
sudo chmod +x cuda_9.0.176_384.81_linux
./cuda_9.0.176_384.81_linux --override

Please can you explain
1-
2-
3-
step by step, thank you from now.

I followed from:


Please help me

That message is a warning only that the installer omitted driver install, because you chose ‘no’ when it asked to install the driver which is correct since you (hopefully) installed the driver through Ubuntu’s software&drivers application or on OS install.
Can be safely ignored.

Before I started to download CuDA, I had have chosen Ubuntu -> Software&Updates -> Using NVIDIA driver metapackage from nvidia-driver-430(proprietary, tested) but at the end of CUDA download I see that message:

***WARNING: Incomplete installation! This installation did not install the CUDA Driver. A driver of version at least 384.00 is required for CUDA 9.0 functionality to work.
To install the driver using this installer, run the following command, replacing with the name of this run file:
sudo .run -silent -driver

Logfile is /tmp/cuda_install_8659.log

Like said, ignore that message.
It says that the .run installer didn’t install a driver and you have to take care to install it yourself.
It does not say, that there’s no driver installed. It does not check for it.
If nvidia-smi works, the driver is installed.