Error Trying to Install CUDA 10.1 on UBUNTU 18.04

Hello all just an FYI I am new to linux so im sorry in advance for any dumb mistakes I might be making.

So I’ve been trying to follow multiple tutorial on how to successfully download CUDA 10.1. I have a compatible GPU GTX1650 as well as a compatible version on linux using wsl-ubuntu18.04 I downloaded the file from
CUDA Toolkit 10.1 Original Archive | NVIDIA Developer
and moved it to the directory so that I could follow the next steps but eventually after rebooting my computer and type nvcc --version I get another version of cuda(12.4) is it still possible to download this version of cuda? also eventually I will need to download cuDNN 7.6 since I plan on using tenserflow