Installation of NVIDIA driver for Quadro k5200 on Ubuntu 18.04

Hi there,

I have a Dell desktop machine with Quadro k5200 graphics card and I have installed Ubuntu 18.04 on this machine.
I want to install NVIDIA drivers on this machine before I install CUDA and cuDNN on this machine.

when I run nvidi-smi it complains that it is not able to communicate with the driver indicating it is not installed yet.
I have good and found commands like:

sudo apt-get install nvidia-352


sudo apt-get install nvidia-XXXX

in this link

but I am not sure what those numbers (XXXX) should be for this Quadro k5200?
Can you please help me with that?

Also can you provide the me the instruction how to install CUDA and cuDNN?


start over with a clean install of ubuntu

get your cuda installers from

follow the instructions in the CUDA linux install guide linked from the above page
for cudnn, google nvidia cudnn and download it from, there are install instructions there as well

Hi Robert,

Thanks for your reply.
I think I need to install NVIDIA driver before installation of CUDA? Is it correct?
My issue is related to installation of driver for Quadro k5200.

when I run


I get the error:

NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running

I have tried to installed using

sudo apt-add-repository ppa:graphics-drivers/ppa
sudo apt update
sudo apt install nvidia-384

But it does not resolve the issue.
How can I resolve this ?


CUDA installers include a bundled driver installer, which will work fine with your GPU.

You have not shown any indication that you have attempted to read and follow my instructions.

I won’t be able to help with ppa installs. ppa is not provided or managed by NVIDIA

Good Luck!

Hi Robert,

I followed your instructions.
First I reinstalled Ubuntu fresh from beginning.

I also followed the instruction for installation of CUDA for x86, Linux, Ubuntu
by downloading cuda:


Then installation :

sudo sh

it gave an error regarding gcc

Failed to verify gcc version. See log at /var/log/cuda-installer.log for details.

which I installed gcc using

sudo apt install gcc

The again I tried to install CUDA:

sudo sh

I again the error:

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

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

[INFO]: Driver not installed.
[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]: 418.87.00
[INFO]: Executing --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 now fully followed your instructions.
Could you please advise how to resolve this?

Could you please

Hi Robert,

I used the other option of installation of CUDA using deb file locally:

$ wget
$ sudo mv /etc/apt/preferences.d/cuda-repository-pin-600
$ wget
$ sudo dpkg -i cuda-repo-ubuntu1804-10-1-local-10.1.243-418.87.00_1.0-1_amd64.deb 
$ sudo apt-key add /var/cuda-repo-10-1-local-10.1.243-418.87.00/7fa2af80.pubsudo apt-get update 
$ sudo apt-get -y install cuda

The steps were done without any error.
Now how can I verify the installation.

I tried running nvidia-smi and I get the same error:

$ nvidia-smi
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

Any thoughts? Thanks

It’s quite evident you didn’t do this:

Hi Robert

I definitely fully followed the instructions on the mentioned page:

I do not know how to upload image here, otherwise, I would attach here for a reference.

Please have a look and give your thoughts.


Hi Robert,

I have read the following link which I think you are referring to.

It mentions about pre-installation actions:
which include
1-Verify You Have a CUDA-Capable GPU, I have already done it.

$ lspci | grep -i nvidia
03:00.0 VGA compatible controller: NVIDIA Corporation GK110GL [Quadro K5200] (rev a1)
03:00.1 Audio device: NVIDIA Corporation GK110 HDMI Audio (rev a1)

2-determining supported version:

$ uname -m && cat /etc/*release
VERSION="18.04.1 LTS (Bionic Beaver)"
PRETTY_NAME="Ubuntu 18.04.1 LTS"

4-Verify the System Has gcc Installed

$ gcc --version
gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0

5-Verify the System has the Correct Kernel Headers and Development Packages Installed

$ sudo apt-get install linux-headers-$(uname -r)
[sudo] password for amin: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
linux-headers-4.15.0-29-generic is already the newest version (4.15.0-29.31).
0 to upgrade, 0 to newly install, 0 to remove and 537 not to upgrade.

For section of 2.5. Choose an Installation Method, I have chosen distribution specific using .deb

I have downloaded the CUDA:

~/NVIDIA_CUDA_installation$ ls

Using Package Manager Installation, I have followed Ubuntu section:

1-Install repository meta-data
which suggests:

$ sudo dpkg -i cuda-repo-<distro>_<version>_<architecture>.deb

and I have done:

sudo dpkg -i cuda-repo-ubuntu1804-10-1-local-10.1.243-418.87.00_1.0-1_amd64.deb

2-Installing the CUDA public GPG key
which suggests:

$ sudo apt-key add /var/cuda-repo-<version>/

and I have done:

$ sudo apt-key add /var/cuda-repo-10-1-local-10.1.243-418.87.00/

and then Update the Apt repository cache
which suggests and I have done

sudo apt-get update

and finally installation which suggests to do :

$ sudo apt-get install cuda

and I have done:

sudo apt-get -y install cuda

And the installation has finished successfully without error.

In section 7.2.3. Verify the Installation and subsection Verify the Driver Version
it suggests:

$ cat /proc/driver/nvidia/version

but when I run I get error:

cat: /proc/driver/nvidia/version: No such file or directory

in fact nvidia folder has not been created in driver folder.

If I missed any step please let me know.
Your help is appreciated.

I am working for Gunnebo Entrance Control and this is for training some model to be used in Jetson Nano.
and we are going to use 16000 Jetson Nano a year depending on this.


As the provided answers in this thread did not resolve my issue, I searched and found an NVIDIA representative in Reading UK.

He advised me to use the instructions in this link:

which I followed the installation via Software Update GUI, pressing Settings button, Additional drivers tab and choose nvidia-driver-430 proprietry and tested and then pressed Apply changes. It successfully installed the driver.

I verfied the installation by running the command


I then followed the instructions for CUDA and cuDNN and managed to install them successfully.
This proves the point that you DO need to install drivers before installing CUDA.