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

kartik kunjekar 15 Reputation points
2024-08-09T03:53:58.44+00:00

PS C:\WINDOWS\system32> wsl.exe --install -d Ubuntu-20.04

Installing: Ubuntu 20.04 LTS

Ubuntu 20.04 LTS has been installed.

Launching Ubuntu 20.04 LTS...

Installing, this may take a few minutes...

WslRegisterDistribution failed with error: 0x80070002

Error: 0x80070002 The system cannot find the file specified.

I tried out everything
wsl --shutdown

turning on/off the virtual environment ,windows subsystem for linux , and all
this all started with docker showing some error. I had ubuntu on my pc and was able to use it but following some solutions to start docker these things happened

Windows for business | Windows Server | User experience | PowerShell
Windows for business | Windows Client for IT Pros | User experience | Other

Locked Question. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.