microsoft / WSL

Issues found on WSL
https://docs.microsoft.com/windows/wsl
MIT License
16.94k stars 799 forks source link

WslRegisterDistribution failed with error: 0x80070002 Error: 0x80070002 The system cannot find the file specified. #10742

Open bardolf69 opened 8 months ago

bardolf69 commented 8 months ago

Windows Version

Microsoft Windows [Version 10.0.22631.2428]

WSL Version

WSL version: 1.2.5.0

Are you using WSL 1 or WSL 2?

Kernel Version

Kernel version: 5.15.90.1

Distro Version

Ubuntu 22.04

Other Software

Docker Desktop v4.25.0

Repro Steps

Have been using it successfully for years but this morning could not open. I was unable to list volumes in WSL as everything was just timing out. After trying to reinstall Ubuntu via WSL I started getting the above error.

Expected Behavior

Open docker desktop or WSL instance

Actual Behavior

sits trying for ages before timing out and giving Error: 0x80070002 The system cannot find the file specified.

Diagnostic Logs

https://1drv.ms/u/s!AiBmbBSEUIWVmdB1jIZhIUuZrjyviw?e=gfe7jh

bardolf69 commented 8 months ago

I have already read and tried the suggestions in the previous posts. I have removed and reinstalled WSL and its components, I have tried using ccleaner, I have checked the Null and lxssManager services are running. I have also tried using system restore to revert back before yesterday's Windows update in the hope that would fix it but the system restore failed.

bardolf69 commented 8 months ago

Also, this only affects WSL2, if I change to WSL1 I can install and use Ubuntu, unfortunately though Docker Desktop relies on WSL2 so I have to get this fixed somehow.

bardolf69 commented 8 months ago

ok just tried uninstalling NordVPN, removing WSL completely > restart > remove HyperV > restart > sfc and dism scans > shutdown > start > reinstall hyperV and WSL > same error

bardolf69 commented 8 months ago

manually started LxssManager and checked Null is working via echo hello>nul, then tried again wsl --instal -d Ubuntu - same result

benhillis commented 7 months ago

Thanks for posting, HcnCreateNetwork is returning this error, adding the networking tag so they can take a look.

chanpreetdhanjal commented 7 months ago

Could you please follow the steps below and attach the diagnostic logs? https://github.com/microsoft/WSL/blob/master/CONTRIBUTING.md#collect-wsl-logs-for-networking-issues

bardolf69 commented 7 months ago

unfortunately I couldn't wait this long so I was forced to reload windows in order to solve the issue :(

dffuller commented 5 months ago

@chanpreetdhanjal I have the same issue, so I'm attaching my diagnostic logs to this issue. WslNetworkingLogs-2024-01-13_21-18-16.zip

Edit: Also, here is the information returned by "wsl --version": WSL version: 2.0.14.0 Kernel version: 5.15.133.1-1 WSLg version: 1.0.59 MSRDC version: 1.2.4677 Direct3D version: 1.611.1-81528511 DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp Windows version: 10.0.19045.3930

ETA: Tag for user who asked for logs to see if this can get some traction.

chanpreetdhanjal commented 4 months ago

@craigloewen-msft

michaeladixon commented 1 month ago

same issue