-
Notifications
You must be signed in to change notification settings - Fork 847
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 broke after Windows update #10831
Comments
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:
|
Thank you @refinedkontrol. Can you try to update to the latest version to be sure that you have it ?
|
Same problem to me after that updates. Every time I tried to open later on I have your same error and after some times a blue screen of death appear. Trying to resinstall wsl didn't work at all. |
I too have the same issue, using WSL 2.0.9 (I asssume that verion, I can't issue any comamnds successfully, but the binary is in the I really only tried to bounce my system as a workaround. I'm a bit hesitant to really mutate my system further, so I haven't reinstalled, edited registry keys or similar system mutations (I'm afraid to lose my data, though if it's inaccessible I suppose what's the worry?). |
I would recommend trying to install the latest version of WSL before doing anything like that |
Thanks, I'll try this and let this thread know. (I thought 2.0.9 was the latest and didn't dig any further on it). |
I cannot install that msi on this machine (a work machine) apparently. I have admin privileges, but alas get the error, even if I try through an administrative powershell. |
Interesting. Could you try to run (elevated):
And share C:\logs.txt ? |
I ran it and got the logs, but as it's a work machine I'm not entirely sure if I can share it here in it's entirety (I'm asking around for the same). Is there something specific I can look for/ |
Not easily. The only thing that this log file should contain would be user names and file paths but to root cause I'd need to see the entire file. You can always redact things that you don't want to share because posting the log file if you want. |
I have the same problem, and I don't mind sharing the file. |
I am also having this same issue, and installing the latest version (2.0.14) did not help. When running the MSI with When running the MSI with |
Thank you @xiaoxi-david. Just to confirm, you ran this command as administrator right ? If so, can you please share the output of (elevated powershell):
And the content of the registry key: |
Yes
|
I tried the same thing and got the same error. |
Thank you @xiaoxi-david. Looks like you somehow have an older wslservice left behind. Can you try to run (elevated cmd):
And see if that solves the issue ? |
Found a way to recover my files ✅ I tried a few other things to fix the issue. Deleted some folders from the registry in an attempt to reinstall WSL. Nothing worked. I suspect I damaged my WSL install further. Decided to cut my losses... Retrieved the WSL disk image file from: C:\Users\my.username\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu_79rhkp1fndgsc\LocalState\ext4.vhdx Opened the That worked and I was able to recover my files. Lost hope that I can fix WSL on my machine without doing an OS reinstall. |
Ah that's too bad. This might be something that we'll need to do as part of the WSL 2.0 installation logic. I'll update this thread when I'll have more info on the subject; |
Mmm.. after upgrading to W24H2 after first reboot and clicking WSL, it installed something or so.. Disabled the WSL extension in VS CODE, restart VS Code, and after some clicking or opening recent project, it's back. THe only issue left is that sometimes the Linux/WSL drive icon in file explorer is gone, opening a project on WSL via VS code makes it appear again. 97% back.. I am not touching it anymore 🗡 |
Windows Version
Microsoft Windows [Version 10.0.22621.2715]
WSL Version
Cannot determine N/A
Are you using WSL 1 or WSL 2?
Kernel Version
Cannot determine N/A
Distro Version
Cannot determine N/A
Other Software
Repro Steps
After the following Windows updates, my WSL installation seems to have disappeared. When I run the Ubuntu app, I get this:
(It's repetitive because I followed the prompts to continue/restart.)
I cannot access WSL via VSCode like normal either.
I tried this fix from StackOverflow. I will copy the fix here for the record:
It looks like this commenter on a different StackOverflow question had the same issue.
Expected Behavior
I expected to be able to open the Ubuntu app or the Terminal app and access my WSL command line like normal.
Actual Behavior
Even though I'm running Windows 11, VSCode reports:
(For some reason it says Windows 10.)
See additional info under diagnostic logs section...
Diagnostic Logs
I had to answer N/A to a bunch of questions because I couldn't get WSL to give me the information.
Some commands I tried running:
Windows updates that have been installed since the last time WSL worked for me:
The text was updated successfully, but these errors were encountered: