Installation of NVIDIA driver for Quadro k5200 on Ubuntu 18.04

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

$nvidia-smi

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 ?

Thanks