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
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.