Quantcast
Channel: Active questions tagged windows-subsystem-for-linux - Ask Ubuntu
Viewing all articles
Browse latest Browse all 2810

Error installing cuda_12.2.2_535.104.05_linux.run in WSL2

$
0
0

This is my version of Ubuntu:

PS C:\WINDOWS\system32> wsl --list --verbose  NAME            STATE           VERSION* Ubuntu-22.04    Running         2

This is my gcc version:

zhao@ZhaoYH:~$ gcc --versiongcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0Copyright (C) 2021 Free Software Foundation, Inc.This is free software; see the source for copying conditions.  There is NOwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

This is the result after entering nvidia-smi

nvidia

When I followed Nvidia's tutorial for CUDA installation, an error occurred when I reached the second line of the command:

wget https://developer.download.nvidia.com/compute/cuda/12.2.2/local_installers/cuda_12.2.2_535.104.05_linux.runsudo sh cuda_12.2.2_535.104.05_linux.run

2

My first installation was successful, but then the ~/.bashrc file was damaged. So I reinstalled Ubuntu. I tried various methods on the Internet to completely clear the remaining CUDA and Nvidia files, but I still got the same error. I even reinstalled Windows 11, but the error still did not disappear. I went to the official Nvidia forum for help, but no one answered.


Viewing all articles
Browse latest Browse all 2810

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>