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

Cannot install WSL #11328

Closed
2 tasks
GoodCoder27 opened this issue Mar 20, 2024 · 17 comments
Closed
2 tasks

Cannot install WSL #11328

GoodCoder27 opened this issue Mar 20, 2024 · 17 comments

Comments

@GoodCoder27
Copy link

GoodCoder27 commented Mar 20, 2024

Windows Version

Microsoft Windows [Version 10.0.19045.3803]

WSL Version

0.0.0.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

None

Distro Version

None

Other Software

No apps interacting with WSL

Repro Steps

When I write wsl --install -d Debian or wsl --install it says "Installing Virtual Machine Platform" and the line below after failing, it says "The referenced assembly could not be found."
Note: I have virtualization enabled

Expected Behavior

Installing WSL2

Actual Behavior

Bug that doesn't let me install wsl

Diagnostic Logs

WslLogs-2024-03-19_20-15-34.zip

Copy link

Hi I'm an AI powered bot that finds similar issues based off the issue title.

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. Thank you!

Open similar issues:

Closed similar issues:

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

@ghost
Copy link

ghost commented Mar 20, 2024

/logs

@GoodCoder27
Copy link
Author

GoodCoder27 commented Mar 20, 2024

My logs WslLogs-2024-03-19_20-15-34.zip

@OneBlue
Copy link
Collaborator

OneBlue commented Mar 21, 2024

@GoodCoder27: I'm not seeing any WSL logs in the file you shared. Can you make sure your reproduce the issue while log collection is running ?

Also this error makes me think that there might be another 'wsl' in your path. Can you share the output of where wsl ?
/logs

@GoodCoder27
Copy link
Author

@OneBlue , thanks for replying.
where wsl outputs nothing for me.
When I try to collect logs there is an error that says ERROR: The system was unable to find the specified registry key or value.

@OneBlue
Copy link
Collaborator

OneBlue commented Mar 21, 2024

Can you share the full output of the log collection script, along with the command you're running ? /logs

@GoodCoder27
Copy link
Author

GoodCoder27 commented Mar 22, 2024

My output when I run collect-wsl-logs.ps1 that is taken from here

Screenshot 2024-03-21 211702

Logs that it saved
WslLogs-2024-03-21_21-12-19.zip

@OneBlue
Copy link
Collaborator

OneBlue commented Mar 22, 2024

Those errors are expected since WSL is not installed. Although I looked at logs.etl and I can't see anything. Did you reproduce the error while the script was running ?

@GoodCoder27
Copy link
Author

Can you explain what do you mean by saying "Did you reproduce the error while the script was running ?". Thanks!

@OneBlue
Copy link
Collaborator

OneBlue commented Mar 22, 2024

The log need to "capture" the problem, so first you need to run the log collection script, then reproduce the problem, then stop the log collection.

/logs

@GoodCoder27
Copy link
Author

How can I know if I reproduced the problem?

@OneBlue
Copy link
Collaborator

OneBlue commented Mar 22, 2024

You need to manually run the command that reproduces the error that this issue is about while log collection is running.

@GoodCoder27
Copy link
Author

GoodCoder27 commented Mar 23, 2024

reg.exe export HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Lxss $folder/HKCU.txt | Out-Null
reg.exe export HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\P9NP $folder/P9NP.txt | Out-Null
reg.exe export "HKEY_CLASSES_ROOT\CLSID\{e66b0f30-e7b4-4f8c-acfd-d100c46c6278}" $folder/wslsupport-proxy.txt | Out-Null
reg.exe export "HKEY_CLASSES_ROOT\CLSID\{a9b7a1b9-0671-405c-95f1-e0612cb4ce7e}" $folder/wslsupport-impl.txt | Out-Null

all reproduce an error for me

@OneBlue
Copy link
Collaborator

OneBlue commented Mar 23, 2024

I'm talking about the WSL issue, not the log collection script error

@GoodCoder27
Copy link
Author

WslLogs-2024-03-22_20-56-54.zip
This is what I get after running collection logs and reproducing the error by running wsl --install.

@GoodCoder27
Copy link
Author

GoodCoder27 commented Apr 2, 2024

I installed Fedora 39 on my laptop and deleted windows since I don't want to reinstall windows 100th time. Thanks @OneBlue for help and good bye

@GoodCoder27
Copy link
Author

Closing the issue

@GoodCoder27 GoodCoder27 closed this as not planned Won't fix, can't repro, duplicate, stale Apr 2, 2024
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

2 participants