-
Notifications
You must be signed in to change notification settings - Fork 846
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WslRegisterDistribution failed with error: 0x80070002 #12249
Comments
View similar issuesPlease view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it! Open similar issues:
Closed similar issues:
Diagnostic information
|
Same failure for me. I encounter this problem after I upgrade the OS system on 11/13.
I tried these steps and it still not work:
Still the command "wsl --list" shows error like And the output of "wsl --install Ubuntu"
|
In my case, it turns out to be the problem related to plugin "Microsoft Defender for Endpoint plug-in for WSL"
And there is only one file the healthcheck.exe in the tools directory. |
Confirmed repairing Windows Defender plugin for WSL via "add or remove programs" fixed my issues. as well. |
Hey I had this issue recently. It happened after I did a suggested cleanup on my HP Omen, bad idea as I think it deleted some important files. My WSL stopped working and I thought that was my only issue but one day trying to use my GPU I ran 'nvidia-smi' command on terminal and I noticed my driver was gone as well. Thus, i reinstalled my CUDA driver 12.4 and out of curiosity I then tried to install WSL and it all was working like nothing had happened. Hope this helps someone having this same issue, it was driving me crazy. C:\Windows\System32>nvidia-smi
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running. This can also be happening if non-NVIDIA GPU is running as primary display, and NVIDIA GPU is in WDDM mode.
C:\Windows\System32>wsl.exe --install Ubuntu
Ubuntu is already installed.
Launching Ubuntu...
Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x80070002
Error: 0x80070002 The system cannot find the file specified.
Press any key to continue...
The operation completed successfully.
C:\Windows\System32>nvidia-smi
Fri Dec 6 16:42:32 2024
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 551.61 Driver Version: 551.61 CUDA Version: 12.4 |
|-----------------------------------------+------------------------+----------------------+
| GPU Name TCC/WDDM | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+========================+======================|
| 0 NVIDIA GeForce GTX 1660 Ti WDDM | 00000000:01:00.0 Off | N/A |
| N/A 46C P8 6W / 30W | 0MiB / 6144MiB | 0% Default |
| | | N/A |
+-----------------------------------------+------------------------+----------------------+
+-----------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=========================================================================================|
| No running processes found |
+-----------------------------------------------------------------------------------------+
C:\Windows\System32>wsl --install Ubuntu
Ubuntu is already installed.
Launching Ubuntu...
Installing, this may take a few minutes...
Please create a default UNIX user account. The username does not need to match your Windows username.
For more information visit: https://aka.ms/wslusers
Enter new UNIX username: *****
New password:
Retype new password:
\passwd: password updated successfully
Installation successful!
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
Welcome to Ubuntu 24.04.1 LTS (GNU/Linux 5.15.167.4-microsoft-standard-WSL2 x86_64) Here you can see the whole thing in a single session. |
Windows Version
10.0.26100.2033
WSL Version
2.3.24.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.153.1-2
Distro Version
Ubuntu 24.04
Other Software
No response
Repro Steps
C:\Users\wecha>wsl --install Ubuntu
Expected Behavior
expected Ubuntu to be installed.
Actual Behavior
C:\Users\wecha>wsl --install Ubuntu
Ubuntu is already installed.
Launching Ubuntu...
Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x80070002
Error: 0x80070002 The system cannot find the file specified.
Press any key to continue...
The operation completed successfully.
Diagnostic Logs
Could not run my existing Ubuntu distro, eventually resorted to reinstalling WSL from scratch in hopes it will resolve issue.
However still hitting same issue after uninstalling wsl and updating it.
C:\Users\wecha>wsl --update
Checking for updates.
The most recent version of Windows Subsystem for Linux is already installed.
C:\Users\wecha>wsl --version
WSL version: 2.3.24.0
Kernel version: 5.15.153.1-2
WSLg version: 1.0.65
MSRDC version: 1.2.5620
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.26100.1-240331-1435.ge-release
Windows version: 10.0.26100.2033
Attach are the logs when attempting to run cmd "wsl --install Ubuntu"
WslLogs-2024-11-08_14-50-11.zip
The text was updated successfully, but these errors were encountered: