Open nikkon-dev opened 1 year ago
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
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.
I confirm that removing empty keys from the HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Lxss
solves the problem.
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.
Worked out for me. Thanks.
@abluetuba Worked for me. Thanks.
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.
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
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!
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
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
wsl -l
. Got the resultwsl --update
. Got resultwsl -l
again. Got result:wsl
- able to login into the default ubuntu image.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
returnsError code: Wsl/Service/EnumerateDistros/ERROR_PATH_NOT_FOUND
Diagnostic Logs
WslLogs-2022-12-16_11-58-14.zip