Wsl/ERROR_NOT_FOUND after installing Windows updates
Windows Version
Microsoft Windows [Version 10.0.19045.3693]
WSL Version
2.0.9.0
Are you using WSL 1 or WSL 2?
- [X] WSL 2
- [ ] WSL 1
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:
Element not found.
Error code: Wsl/ERROR_NOT_FOUND
Diagnostic Logs
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:
- WSL failed to start after update Windows (#4939), similarity score: 0.89
- WSL not working after windows update (#10185), similarity score: 0.89
- Latest Windows update uninstalled WSL (#9355), similarity score: 0.87
- WSL doesnt start after Windows Update (#5722), similarity score: 0.87
- WSL Not working after windows 11 updates (#7379), similarity score: 0.86
Closed similar issues:
- WSL stopped working after latest windows update (#8133), similarity score: 0.87
- Windows Update Destroys WSL System (#1195), similarity score: 0.86
- Windows updates disabled - Can't upgrade to WSL 2 (#6132), similarity score: 0.85
- Can't update WSL2 (#10527), similarity score: 0.85
- Unable to update to WSL2 (#5309), similarity score: 0.85
You can give me feedback by thumbs upping or thumbs downing this comment.
Try this https://github.com/microsoft/WSL/issues/10764#issuecomment-1815485695
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.
wsl --install ends with 0x80070490
Is there some proper way to clean WSL completely and then reinstall from scratch?
Or some comprehensive registry of WSL errors?
After wsl --update and installing required kernel update MSI, I'm down to square one, Wsl/ERROR_NOT_FOUND
@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
wsl.2.0.9.0.x64.log.zip
Well, according to log installation succeeded 🤷
As of logs, I'm getting issue with importing AppX module . Was present before reinstall, just didn't notice. Need to solve before I get real logs. Honestly it's extremely frustrating how MS products tend to hide error information at all cost.
Finally logs: WslLogs-2023-11-18_07-54-11.zip
@target-san
I have just run into this issue myself. Spent half a day trying to fix it. Nothing has worked except for:
- reinstall of the windows components: virtual machines support & wsl support
- uninstall all the wsl updates
- wsl --install --no-distribution
- now wsl --status at least produces the report, but requires an update
- run wsl --update --inbox (only the kernel)
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. https://github.com/microsoft/WSL/issues/10788#issuecomment-1817734924
@pahar0 Yup, thanks. Works for me too. At least for now. Though it's interesting what causes this requirement out of thin air.
Launching WSL from a terminal with administrator privileges works for me. #10788 (comment)
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. @osavoskin interesting... could you try this https://github.com/microsoft/WSL/issues/10793#issuecomment-1817780109 ? I know the problem is not related but this could be another possible solution.
@pahar0 Doesn’t help either. I have already tried everything. The only thing that worked is uninstalling all the updates. It allows me to work, at least. But the cli becomes unresponsive when the —shutdown command executed. So, the UX is awful
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. Docker Desktop fails, but when launched with admin rights, succeeds aswell. For now I can work like this but it needs to be fixed..
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:
Wsl/CallMSI/E_ABORT
We've identified the issue and working on a fix. You can workaround it by enabling the WSL optional component and rebooting
Wsl/ERROR_NOT_FOUND
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:
- Download and extract ComTrace.wprp
- Open an elevated command prompt
- Run:
wpr -start ComTrace.wprp -filemode - Reproduce the issue (example:
wsl.echo echo test) - Run
wpr -stop logs.etl - Share
logs.etlon this issue
@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?
@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