Nvidia driver not loaded Ubuntu 18.04

I’m trying to install cuda 10 on ubuntu 18.04 LTS. I installed the nvidia driver with it but it not working.

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

/lib/modprobe.d/blacklist-nvidia.conf: No such file or directory

prime-select nvidia
Info: the nvidia profile is already set

 cat /var/log/gpu-manager.log
log_file: /var/log/gpu-manager.log
last_boot_file: /var/lib/ubuntu-drivers-common/last_gfx_boot
new_boot_file: /var/lib/ubuntu-drivers-common/last_gfx_boot
can't access /run/u-d-c-nvidia-was-loaded file
can't access /opt/amdgpu-pro/bin/amdgpu-pro-px
Looking for nvidia modules in /lib/modules/5.4.0-42-generic/updates/dkms
Looking for amdgpu modules in /lib/modules/5.4.0-42-generic/updates/dkms
Is nvidia loaded? no
Was nvidia unloaded? no
Is nvidia blacklisted? no
Is intel loaded? no
Is radeon loaded? no
Is radeon blacklisted? no
Is amdgpu loaded? no
Is amdgpu blacklisted? no
Is amdgpu versioned? no
Is amdgpu pro stack? no
Is nouveau loaded? no
Is nouveau blacklisted? yes
Is nvidia kernel module available? no
Is amdgpu kernel module available? no
Vendor/Device Id: 10de:17c2
BusID "PCI:2@0:0:0"
Is boot vga? yes
Error: can't access /sys/bus/pci/devices/0000:02:00.0/driver
The device is not bound to any driver.
Error : Failed to open /dev/dri
Error : Failed to open /dev/dri
Error : Failed to open /dev/dri
Error : Failed to open /dev/dri
Does it require offloading? no
last cards number = 1
Has amd? no
Has intel? no
Has nvidia? yes
How many cards? 1
Has the system changed? No
Single card detected
Nothing to do

nvidia-bug-report.log.gz (68.1 KB)

The cuda bundled driver is too old for your kernel. Please purge anything nvidia and cuda, install the driver using Ubuntu’s software&updates application, then install ‘cuda-toolkit’ instead of ‘cuda’.