I deleted the "\Software\Microsoft\Windows\CurrentVersion\Lxss" #10501
-
Windows VersionMicrosoft Windows [version 10.0.19045.3324] WSL Version2.0.0.0 Are you using WSL 1 or WSL 2?
Kernel VersionNo response Distro Versionubuntu Other SoftwareLinux version 5.15.123.1-microsoft-standard-WSL2 (root@5a891d5fa777) (gcc (GCC) 11.2.0, GNU ld (GNU Binutils) 2.37) #1 SMP Mon Aug 7 19:01:48 UTC 2023 Repro StepsI stupidly deleted the "\Software\Microsoft\Windows\CurrentVersion\Lxss", now I get "Class not registered, Error code: Wsl/CallMsi/REGDB_E_CLASSNOTREG". I tried closing and reopening wsl. Now I can access through the shortcut "wsl", but when entering "wsl" in cmd I will receive the above error prompt, and my vscode prompt cannot find the wsl distribution version. and I stupidly didn't back up the registry. Expected Behavior. Actual Behavior. Diagnostic LogsNo response |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Could you try uninstall and re-installing the WSL MSI? |
Beta Was this translation helpful? Give feedback.
-
this happens to me in the newset version of wsl. |
Beta Was this translation helpful? Give feedback.
-
Anyone have a solution to this? WSL won't update, uninstall/reinstall doesn't do anything either. |
Beta Was this translation helpful? Give feedback.
Could you try uninstall and re-installing the WSL MSI?