First, import the GPG key.
sudo wget -O- https://developer.download.nvidia.com/compute/cuda/repos/debian11/x86_64/7fa2af80.pub | gpg --dearmor | sudo tee /usr/share/keyrings/nvidia-drivers-linuxcapable.com.gpg
Second, import the repository for your Debian 11 system.,
echo 'deb [signed-by=/usr/share/keyrings/nvidia-drivers-linuxcapable.com.gpg] https://developer.download.nvidia.com/compute/cuda/repos/debian11/x86_64/ /' | sudo tee /etc/apt/sources.list.d/nvidia-drivers.list
Enable the CONTRIB repository. Run this even if you think you have it enabled already to be safe.
sudo apt-get install software-properties-common
sudo add-apt-repository contrib
Update your APT-CACHE.
sudo apt update && sudo apt upgrade -y
Install NVIDIA 510 Drivers With Cuda Support:
```shell
sudo apt install cuda nvidia-driver nvidia-settings nvidia-smi nvidia-xconfig nvidia-opencl-icd nvidia-opencl-common nvidia-detect linux-image-amd64 linux-headers-amd64 cuda
sudo reboot
nvidia-smi