-
Notifications
You must be signed in to change notification settings - Fork 854
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/ERROR_NOT_FOUND after installing Windows updates #10782
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:
You can give me feedback by thumbs upping or thumbs downing this comment. |
Try this #10764 (comment) |
Didn't work. I erased service record, uninstalled WSL components from installer. Now I cannot even install it, installer simply closes immediately. WSL CLI returns same error. |
|
After |
@target-san: I'm not seeing anything in the logs you shared. Can you try to manually install the latest release and see if that helps ? Please share /logs again if a failed startup if that doesn't help |
@OneBlue |
Finally logs: |
I have just run into this issue myself. Spent half a day trying to fix it. Nothing has worked except for:
Now you should be able to run your containers, at least. But any update to wsl (up to 2.0.9) will break it again, unfortunately. ** I guess the windows components reinstallation step is excessive and can be skipped. Try to just uninstall all the wsl updates and update the kernel (--inbox) to make it work. |
Launching WSL from a terminal with administrator privileges works for me. #10788 (comment) |
@pahar0 Yup, thanks. Works for me too. At least for now. |
Hm, does not work for me, for some reason.. |
Launching WSL from a terminal with admin privs it's a workaround while we wait for a proper solution. We should be able to run it as a regular user. |
@pahar0 |
Same issue, but I have also noticed that wslg.exe is missing and I can't seem to get it back no matter what I do |
Same issue, can only run wsl with admin rights, everything else fails. Have to manually run it on admin. |
Yup running with admin rights is the only thing that works atm. I wonder if this is related to the patch this latest update pushed regarding an Elevation of Privilege vulnerability. Cause i've had similar issues with other tools like powertools or autohotkey |
Thanks everyone for reporting this. To give some clarity: there are two issues with WSL 2.0.9:
We've identified the issue and working on a fix. You can workaround it by enabling the WSL optional component and rebooting
We've not been able to reproduce the issue yet. We're investigating but to root cause it we'd need COM logs. If you can reproduce the issue, please follow these instructions to collect logs:
|
@OneBlue The problem is wsl works when the command is launched from an elevated terminal. That is the current workaround for the issue. Can we get the trace from a non-elevated terminal? |
@bsatts: Yes you can start the trace from an elevated terminal and then reproduce the issue from another, non-elevated terminal. The log collection will capture that repro |
Thank you. I started the wpr, then opened a new command prompt and typed wls. Then ended the wpr |
Thank a lot @bsatts. We're getting closer. Can you try to execute: |
regedit.zip |
Thank you @pahar0. This confirms our theory: There is an old WSL installation that's conflicting with the latest package. Can you try to:
(You can use the .reg you just captured as backup if needed) |
Thanks for all the help on this folks. This is a strange MSIX / packaged COM issue that we have not seen in internal testing. I know this issue is causing you all a lot of pain, and I'm hopeful we will have a fix to push out before turkey day. |
Issue solved deleting |
Thank for confirming @pahar0. So this confirms that the issue is this registry key being left over by previous install. We'll update our install logic to automatically remove it in the next update. |
On Windows 10, just deleting the newest WSL entry in the list of Windows applications worked for me #10767 (comment) |
I also had the same issue and confirm that deleting HKEY_LOCAL_MACHINE\SOFTWARE\Classes\PackagedCom\ClassIndex{A9B7A1B9-0671-405C-95F1-E0612CB4CE7E} in regedit resolve the issue. |
Same for me. Erasing that key solved issue permanently. |
Thanks for the confirmation! @OneBlue is working on a fix now. |
THANK YOUUUUUUU. Deleting the reg. key also solved all WSL update problems for me. |
Issue solved deleting Thanks :) |
|
I found a solution in: here. You can try it |
For others coming here and trying to verify their registry: I installed the .msi from an unmodified registry (I changed the name to get work done, then reverted to the stock name before installing 2.0.11). These keys appeared before the install, and no longer appear after: I'm now working fine without needing to make manual registry edits. I think one of these (or perhaps some combination of all?) are the registry key(s) for 2.0.11: At least, they exist after I installed 2.0.11; I don't know if they existed before but they're all include a subkey |
Can confirm installing version 2.0.11 (pre-release) works in resolving this issue of not being able to access WSL without elevated privileges. |
Windows Version
Microsoft Windows [Version 10.0.19045.3693]
WSL Version
2.0.9.0
Are you using WSL 1 or WSL 2?
Kernel Version
N/A
Distro Version
N/A
Other Software
No response
Repro Steps
Install Windows updates (possibly KB5032189)
Expected Behavior
Wsl works
Actual Behavior
Error:
Diagnostic Logs
WslLogs-2023-11-17_09-50-38.zip
The text was updated successfully, but these errors were encountered: