microsoft / WSL

Issues found on WSL
https://docs.microsoft.com/windows/wsl
MIT License
17.18k stars 805 forks source link

WSL not working anymore #11757

Closed Luifr closed 1 month ago

Luifr commented 1 month ago

Windows Version

Microsoft Windows [Version 10.0.22631.3737]

WSL Version

2.2.4.0

Are you using WSL 1 or WSL 2?

Kernel Version

No response

Distro Version

Ubuntu

Other Software

No response

Repro Steps

wsl --install wsl

Expected Behavior

WSL should install and work

Actual Behavior

Most WSL command hangs Ubuntu installs but shows error on opening.

It was working fine yesterday

Both Window subsystem for Linux and Virtual Machine platform are enabled I already tried to turn off, reboot, turn on, reboot a few times, no differences

I tried deleting everything related to wsl and dowloading again, including manual download from the releases in github

Commands: wsl, wsl -l, wsl --shutdown Result: Hangs for a long time then output the following message

The specified service does not exist as an installed service.
Error code: Wsl/ERROR_SERVICE_DOES_NOT_EXIST

Command: wsl --install Result:

Ubuntu is already installed.
Launching Ubuntu...
Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x80070424
Error: 0x80070424 The specified service does not exist as an installed service.

The solution for the error code 0x80070424 that i found is related to enabling windows features, but i have already tried that many times

Command: wsl --version Result:

WSL version: 2.2.4.0
Kernel version: 5.15.153.1-2
WSLg version: 1.0.61
MSRDC version: 1.2.5326
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.26091.1-240325-1447.ge-release
Windows version: 10.0.22631.3737

Command: wsl --help Result: expected output

Diagnostic Logs

No response

github-actions[bot] commented 1 month ago

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](https://github.com/Microsoft/WSL/blob/master/diagnostics/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](https://github.com/microsoft/WSL/blob/master/CONTRIBUTING.md#8-collect-wsl-logs-recommended-method) If you choose to email these logs instead of attaching to the bug, please send them to wsl-gh-logs@microsoft.com 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.

Luifr commented 1 month ago

WslLogs-2024-07-08_14-42-47.zip

github-actions[bot] commented 1 month ago

The log file doesn't contain any WSL traces. Please make sure that you reproduced the issue while the log collection was running.

Diagnostic information ``` Detected appx version: 2.2.4.0 Found no WSL traces in the logs ```
ashish111333 commented 1 month ago

facing the same issue ,not able to install any distro after windows update ...

1>have tried wsl --unregister <distro> didn't work. 2>restarting and turning windows features on and off doesn't work. 3>and sometimes wsl command itself doesn't work. 4>tried installing distro from command line ,didn't work.

I am just stuck at this screen below wsl_issue ...

Angelinsky7 commented 1 month ago

i have the same issue after a window 11 update, wsl hangs after a fresh start.

The only thing that's working for me is : wsl.exe --shutdown

be happy to give some logs but i don't know where to look for.

microsoft-github-policy-service[bot] commented 1 month ago

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-file it as a new issue.

Thank you!