-
Notifications
You must be signed in to change notification settings - Fork 823
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 closes immediately #6218
Comments
Which is your default distro? |
Or better, output of |
@therealkenc You are thinking what I am thinking. |
EDIT: I'm afraid I actually have a different issue. Original: I have the same issue.
|
What is Legacy? |
Well that's interesting, insofar as You might try:
Assuming that takes, Before doing so, out of an abundance of caution, you might want to backup your Ubuntu distribution with
Trying running If it fails to launch, and you like, collect WSL logs and post the backlink to the feedback item here. Although in the circumstance, you are probably shooting for WSL2
It is the distribution that used to ship with the now-deprecated |
Same thing happens when your default distro is |
Hi, I have the same issue WSL is closing immediately wsl.exe -l -v
Please advise how to fix this |
@ktre2017 Does running |
I tried but it didn't work. |
Then something is wrong with Ubuntu 18.04 distro. /cc @craigloewen-msft |
@therealkenc thanks! basically the default distro was docker |
The same thing happened to me. wsl -d Ubuntu-22.04 --user root Then I did:
And I saw that there was a problem with my shell prompt. |
In my case, I didn't have So, I installed it, using this command: wsl --install -d Ubuntu Then I used the following command to set the wsl --set-default Ubuntu Other useful commands:
|
I can't install ubuntu distro using my wsl and open it . I tried to install the Ubuntu using this command wsl --install -d Ubuntu And then the Ubuntu shell opens and then it asks to press a key to continue but when I press the key the window immediately closes. And when I try to open again it shows you have no distros installed. Windows Subsystem for Linux has no installed distributions.
Distributions can be installed by visiting the Microsoft Store:
https://aka.ms/wslstore I tried listing the distros using this command wsl --list --verbose but it shows no distros installed. |
Finally solved this issue by doing a kernel update from the wsl docs |
@therealkenc Thank you! |
Same same here.
All partitions are clean, The usual 3 windows Partition, one ExFat, the last one is Ext4 There is no command |
Environment
Steps to reproduce
Running: "Open Linux shell here" from context menu, run "wsl" from cmd or PowerShell.
Expected behavior
Shell opens. Shell opens at the location I selected "Open Linux shell here".
Actual behavior
This results in a window which closes immediately. No possibility of interacting or even taking a look a the error message.
If running in the command line this is followed by no response.
wsl only works if distro is mentioned explicitely:
wsl -d ubuntu
The text was updated successfully, but these errors were encountered: