Uninstall cuda , cudnn ,nvidia sdk

Hello,

I downloaded CUDA, cuDNN, and Toolkit from NVIDIA, and I want to either delete or update them. Here are my outputs:

nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2021 NVIDIA Corporation
Built on Thu_Nov_18_09:45:30_PST_2021
Cuda compilation tools, release 11.5, V11.5.119
Build cuda_11.5.r11.5/compiler.30672275_0

sudo apt remove cuda*
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package cuda-repo-ubuntu2204-12-0-local_12.0.0-525.60.13-1_amd64.deb
E: Unable to locate package cuda-repo-ubuntu2204-12-1-local_12.1.0-530.30.02-1_amd64.deb
sudo apt autoremove
sudo apt update
sudo apt upgrade

nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2021 NVIDIA Corporation
Built on Thu_Nov_18_09:45:30_PST_2021
Cuda compilation tools, release 11.5, V11.5.119
Build cuda_11.5.r11.5/compiler.30672275_0

As seen, it's not getting deleted in any way, or I'm missing something. I don't know what to do. I've also deleted files using commands like 'locate cuda', 'sudo find ~ -name cuda', and similar, which find a lot of things.

I'm seeking assistance on this matter.

Best regards,
Good work.

using just uninstall or flash you dont have too much thing for this situation , ı suggest you using default version of cuda or cudnn . And if you want use torch on your system download .whl file which is dusty_nv repo