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

Lots of issues I guess, just can't get wsl working #9501

Closed
Shikamaru5 opened this issue Jan 17, 2023 · 9 comments
Closed

Lots of issues I guess, just can't get wsl working #9501

Shikamaru5 opened this issue Jan 17, 2023 · 9 comments

Comments

@Shikamaru5
Copy link

So I've done the steps set by many, many different articles and videos, I've even had someone who used to be on the development team for wsl ubuntu try helping me on Twitter, but I've yet to get it working. There's been a few times where I've gotten wsl downloaded enabled wsl2 the update and kernel are good, and ubuntu downloaded with username and password set up, to have it that when I type in wsl, nothing happens. Currently though the issue it shows is:
The Windows Subsystem for Linux optional component is not enabled. Please enable it and try again.
It's enabled, the virtualization is enabled too. I had it working but the python was too old, I accidentally broke that so I decided to uninstall and reinstall wsl and ubuntu, but now it just won't ever work. Idk what to do... the things I've tried:

wsl --install or wsl --update or download wsl from microsoft store
enable online features, enable windows subsystem for linux
wsl --set-version 2
wsl --install -d ubuntu
install ubuntu on microsoft store, all three versions have been tried.
making sure I restart after every step, although my computer really hates that.
setting up username and password on ubuntu
type in wsl and nothing works.
Going to the recommended sites when something stalls me.

I don't have any third party security software running, just on local, I'm on windows 10 version 22H2 (OS build 19045.2545)
I've tried dism.exe/online/enable-feature/featurename:Microsoft-windows-subsystem-Linux/all/norestart and the same for vm
Not sure what else to try but I need to solve it now because it's even corrupted my command line in sublime text just trying to run regular programs in windows

@OneBlue
Copy link
Collaborator

OneBlue commented Jan 17, 2023

@Shikamaru5: Can you describe the exact command you're running and the output / errors you're getting so we can help diagnose the issue ?

@Shikamaru5
Copy link
Author

alright so I'll try and do my best, I've screenshotted pics of what I've done.

wsl4
had to use the update command because just typing wsl --install provides an error. I restarted after doing that.

wsl2

set it to version 2 of wsl and that seemed to work alright.

wsl
Tried installing Ubuntu and when it loaded up Ubuntu didn't work.

wsl3

Tried to see if wsl was working and it said it required an update, so I visited the website to see and I got the required file.

wsl5

ubuntu

vm

wsl6

The remaining are just what my machine says that I have but I can't think of any other steps that I need to do according to looking online. I hope this looked alright and wasn't too confusing.

@ghost ghost removed the needs-author-feedback label Jan 18, 2023
@OneBlue
Copy link
Collaborator

OneBlue commented Jan 18, 2023

@Shikamaru5: Did you install the kernel component as the error message suggested ? You can find instructions on how do that here: https://learn.microsoft.com/en-us/windows/wsl/install-manual#step-4---download-the-linux-kernel-update-package

@Shikamaru5
Copy link
Author

Ya I did, I have x64 so I just downloaded the link WSL2 Linux kernel update package for x64 machines

@ghost ghost removed the needs-author-feedback label Jan 18, 2023
@OneBlue
Copy link
Collaborator

OneBlue commented Jan 18, 2023

Did you install it ?

@Shikamaru5
Copy link
Author

Yup, it installs perfectly fine whenever I download and then click it, it pops up a menu with the linux penguin telling me to install so that's what I do. From doing investigating of why I'm having trouble with windows commands right now, it seems I have a python install that just won't go away from a previous attempt of wsl. I try to uninstall but it says it's not there, so I try to repair, and it attempts to take me to the file of where it used to be but that whole program isn't there to access, so Idk how to fix it but that might be the source of my frustrations and why I can't seem to get wsl working. Somehow it's still in my systems memory but Idk how to access it to get rid of it, I don't even have docker installed anymore which was also apparently connected to my wsl.

python
this is the file that isn't technically installed but I can't get rid of, which is connected to my old wsl.

python1

In the log files it shows the directory it's trying to target.

target_dir

Obviously I could be off my rocker but I can't see any other reason why following the simple install instructions to get wsl and ubuntu wouldn't work.

@ghost ghost removed the needs-author-feedback label Jan 18, 2023
@OneBlue
Copy link
Collaborator

OneBlue commented Jan 20, 2023

Does wsl work after installing the kernel ? If not, can you please capture /logs ?

@ghost
Copy link

ghost commented Jan 20, 2023

Hello! Could you please provide more logs to help us better diagnose your issue?

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 scipt will output the path of the log file once done.

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

Click here for more info on logging

Thank you!

@ghost ghost closed this as completed Jan 27, 2023
@ghost
Copy link

ghost commented Jan 27, 2023

This issue has been automatically closed since it has not had any author activity for the past 7 days. If you're still experiencing this issue please re-open it.

Thank you!

This issue was closed.
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