Skip to content
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

Error code: Wsl/Service/EnumerateDistros/ERROR_PATH_NOT_FOUND #9349

Open
1 of 2 tasks
nikkon-dev opened this issue Dec 16, 2022 · 9 comments
Open
1 of 2 tasks

Error code: Wsl/Service/EnumerateDistros/ERROR_PATH_NOT_FOUND #9349

nikkon-dev opened this issue Dec 16, 2022 · 9 comments

Comments

@nikkon-dev
Copy link

Version

WSL version: 1.0.3.0 Kernel version: 5.15.79.1 WSLg version: 1.0.47 MSRDC version: 1.2.3575 Direct3D version: 1.606.4 DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp Windows version: 10.0.19045.2364

WSL Version

  • WSL 2
  • WSL 1

Kernel Version

Linux version 5.15.79.1-microsoft-standard-WSL2 (oe-user@oe-host) (x86_64-msft-linux-gcc (GCC) 9.3.0, GNU ld (GNU Binutils) 2.34.0.20200220) #1 SMP Wed Nov 23 01:01:46 UTC 2022

Distro Version

Ubuntu 22.04

Other Software

No response

Repro Steps

  1. On Windows 10 with standard (not from Store or Github) WSL run wsl -l. Got the result
Windows Subsystem for Linux Distributions:
Ubuntu-2204 (Default)
docker-desktop
docker-desktop-data
  1. Run wsl --update. Got result
Installing: Windows Subsystem for Linux
Windows Subsystem for Linux has been installed.
  1. Run wsl -l again. Got result:
The system cannot find the path specified.
Error code: Wsl/Service/EnumerateDistros/ERROR_PATH_NOT_FOUND
  1. Run wsl - able to login into the default ubuntu image.
  2. Uninstall "Windows Subsystem for Linux" from Store and run wsl -l again. Got normal results back.

Expected Behavior

wsl -l continues to work for the versions installed from Windows Store or GitHub releases. This is functionality that, for example, docker desktop depends on.

Actual Behavior

wsl -l returns Error code: Wsl/Service/EnumerateDistros/ERROR_PATH_NOT_FOUND

Diagnostic Logs

WslLogs-2022-12-16_11-58-14.zip

@epthewizard
Copy link

I have this same issue and WSL completely broke after I updated. I can run wsl and get it running but then VSCode can't find any distros

@abluetuba
Copy link

I had the same error.

In the Registry Editor under \HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Lxss\ I believe there should be a key for each installed distribution. Instead I found one more with no values in it. I deleted it and this fixed it for me.

@nikkon-dev
Copy link
Author

I confirm that removing empty keys from the HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Lxss solves the problem.

@jishcem
Copy link

jishcem commented Mar 10, 2023

I was able to update the WSL using --web-download option. So the command would be like this
wsl.exe --update --web-download
I think this may work for those who has their windows store disabled.

@103488117
Copy link

Worked out for me. Thanks.

@SebinLee
Copy link

@abluetuba Worked for me. Thanks.

@zcarlos
Copy link

zcarlos commented Jun 26, 2023

I was able to update the WSL using --web-download option. So the command would be like this wsl.exe --update --web-download I think this may work for those who has their windows store disabled.

It worked to me to.

@aiyou9
Copy link

aiyou9 commented Sep 15, 2023

I had the same error.

In the Registry Editor under \HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Lxss\ I believe there should be a key for each installed distribution. Instead I found one more with no values in it. I deleted it and this fixed it for me.

when i re-install Ubuntu 20.04 in D://, I STOP it and did not finish install, and then it give me error

Error accessing regedit. path:“\REGISTRY\USER\S-1-5-21-32xxxxxx748-41xxxxxxx705-211xxxxxxx44-1000\Software\Microsoft\Windows\CurrentVersion\Lxss\{59d4xxxxd-ccx2-4xxx3-8e66-459xxxxxx9f9a9}\BasePath”。Error: The system cannot find the specified path
Error code: Wsl/Service/EnumerateDistros/ERROR_PATH_NOT_FOUND

and then i delect {59d4xxxxd-ccx2-4xxx3-8e66-459xxxxxx9f9a9} folder in registry

and then re-install my wsl in D://
it work

@jezreel-findmyoptions
Copy link

I had the same error.

In the Registry Editor under \HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Lxss\ I believe there should be a key for each installed distribution. Instead I found one more with no values in it. I deleted it and this fixed it for me.

worked thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants