-
Notifications
You must be signed in to change notification settings - Fork 863
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
wsl: WSL installation seems to be corrupted (error code: Wsl/CallMsi/Install/REGDB_E_CLASSNOTREG). #12624
Comments
It's been a week and I still can't solve this problem, programming is a long way off! |
Diagnostic information
|
Anyone else have the same problem? |
I was able to fix this with the following commands: dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart reference: https://learn.microsoft.com/en-us/windows/wsl/install-manual |
In the registry, I find my wsl version is 2. I tried this method, but it can't work. |
This is really a terrible issue. It appeared out of nowhere, with no warning, and it's really frustrating. I just ran wsl --update, and I didn't do anything else. |
Based out the output it's looking like the installer can't write the registry to configure WSL. Do you have any security program / AV running that could block WSL ? Also let's try to look at the MSI log. Can you download the latest MSI and then run as elevated:
And share the content of |
I have Windows Defender and Kaspersky. After I closed Kaspersky, it still cannot work. |
Interesting. Looking through the logs, this appears to be the root cause:
Can you check if |
Anything else I can do? |
Windows Version
Microsoft Windows [Version 10.0.26100.3194]
WSL Version
0.0.0.0
Are you using WSL 1 or WSL 2?
Kernel Version
No response
Distro Version
No response
Other Software
No response
Repro Steps
1. Environment
I have downloaded wsl in the Microsoft Store. Here are the files in
C:\Program Files\WindowsApps\MicrosoftCorporationII.WindowsSubsystemForLinux_2.4.11.0_x64__8wekyb3d8bbwe
Here is my registry.
I don't have these.
计算机\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Drive\shell\WSL
计算机\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\WSL
And I refer to DS's advice and proceed as follows
And restart my PC
Expected Behavior
After inputting wsl in PowerShell, it won't appear as below.
Actual Behavior
Three attempts
After inputting wsl in PowerShell, it appears as below.
Diagnostic Logs
This log shows me typing wsl into powershell 7.0 until I get the result shown in the image below.
WslLogs-2025-02-23_14-08-28.zip
The text was updated successfully, but these errors were encountered: