Installing NVIDIA Cuda Compiler

Hi all,

This is actually related to an issue solved here: Nvidia Cuda Compiler not showing up in Linux 22.04.

For some reason, however, I’m facing the same problem. Essentially, I had to fresh install my Linux distro (“Jammy Jellyfish 22.04”) and following the procedure described in the link I’m not able to install both the NVIDIA Drivers and the Cuda Compiler.

Currently, I’m running the system version from the graphic-drivers repository of the NVIDIA Drivers 525.78.1 along with a Cuda Version 12.0.

What I need is that the command nvcc -V returns me with a correct version for the Cuda Compiler instead of the following:

Command 'nvcc' not found, but can be installed with:
sudo apt install nvidia-cuda-toolkit

If there is a way to do that without having to remove the Drivers and everything associated that would be awesome, as it is much safer to get drivers and stuff install through the Software&Updates App.

Thanks in advance!