Issue: CUDA and cuDNN installation on Ubuntu 22.04

Hey all,
I’m super new to the coding world and have just installed ubuntu 22.04 on my machine. I aim to work in ML and am trying to get CUDA and cuDNN working here, running into issues. I am using the proper directions for my system Ubuntu 22.04 x86_64 found at When i go to verify installation after following those instructions I get the below

“bigerrn@workshop:~$ nvcc --version
Command ‘nvcc’ not found, but can be installed with:
sudo apt install nvidia-cuda-toolkit”

I decided to just go the sudo apt-get install nvidia-cuda-toolkit route but that seems to install the 11.5 release. I was told to check my CUDA compatability with nvidia-smi and that shows 12.2 is my compatible version. Will this be an issue?

For cuDNN when i go to install the runtime library i get the below. I am not sure where to go from here, any help is appreciated.

"bigerrn@workshop:~/Downloads$ sudo apt-get install libcudnn8=
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
Package libcudnn8 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Version ‘’ for ‘libcudnn8’ was not found"

Apologies if this is not the right board to post this in

please read the linux install guide: CUDA Installation Guide for Linux

and be sure to follow the post-install instructions