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

Problem with Linux #12395

Open
FredrikAndersson opened this issue Dec 18, 2024 · 2 comments
Open

Problem with Linux #12395

FredrikAndersson opened this issue Dec 18, 2024 · 2 comments

Comments

@FredrikAndersson
Copy link

Hello,

I can't install Windows Subsystem for Linux
I get the following error message
I would appreciate if someone could give me a tip to solve this,
My error message:
wsl --install

Class not registered

Error code: Wsl/CallMsi/REGDB_E_CLASSNOTREG

When I go into the Microsoft Store I see that Debian is installed but when I click to open it I get the error message below in an infinite loop.

Installing, this may take a few minutes...

WslRegisterDistribution failed with error: 0x8007019e Error: 0x8007019e

The Windows Subsystem for Linux is not installed. You can install by running 'wsl.exe --install'.

For more information please visit https://aka.ms/wslinstall

Press any key to continue...

Copy link

Logs are required for review from WSL team

If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'.
Otherwise please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.

How to collect WSL logs

Download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:

Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force
.\collect-wsl-logs.ps1

The script will output the path of the log file once done.

If this is a networking issue, please use collect-networking-logs.ps1, following the instructions here

Once completed please upload the output files to this Github issue.

Click here for more info on logging
If you choose to email these logs instead of attaching to the bug, please send them to [email protected] with the number of the github issue in the subject, and in the message a link to your comment in the github issue and reply with '/emailed-logs'.

View similar issues

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it!

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@sirredbeard
Copy link
Contributor

wsl --install resulting in Error code: Wsl/CallMsi/REGDB_E_CLASSNOTREG suggests that something is blocking WSL from properly installing.

Do you have any third party security software or Group Policy possibly prohibiting installation of third party applications?

Another option you could try is to enable the feature manually in Windows:

dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

Restarting, and then running wsl.exe --update to ensure you are on the latest version.

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

No branches or pull requests

2 participants