-
Notifications
You must be signed in to change notification settings - Fork 822
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
Object not found error / Error code: Wsl/ERROR_NOT_FOUND - wsl can be run and used only with elevated privileges ("run as admin") #10767
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. |
I'm having this exact issue since yesterday (2023-11-15). |
Also having similar issues since yesterday (2023-11-15) <3>WSL (82) ERROR: CreateProcessEntryCommon:502: execvpe /bin/bash failed 5 |
Same issue here, after yesterday's Windows 10 Update (2023-11-15). |
Similar issue here (and X11 window corruption) Admin
User
|
I got the same issue several times since 2023-11-15. Always the same error when i try to run any wsl command or open my ubuntu distro:
I am able to reinstall wsl and ubuntu from scratch and use it for a while but I have been able to reproduce the issue when:
This is my wsl --version print:
|
I am seeing the same error, for me it started after installing the Windows update KB5032189. After rebooting WSL started to behave in the same way as the OP. |
I just noticed this today as well. Looks like WSL updated yesterday from the MS store (reporting version 2.0.9.0). Also installed Windows 10 KB5032189 yesterday as well. Edit: Confirmed that it will open fine if I launch Terminal as administrator. |
I am also seeing this error with WSL version 2.0.9.0 and installed Windows 10 KB5032189 yesterday. |
Thanks for reporting, I'm not seeing /logs in this thread, could you please collect? |
Here they are, one log for stuff ran as standard user and another with elevated privileges |
This is works for me. Just uninstall latest app. Great! |
The same problem for me, work stopped, docker doesn't work, wsl doesn't work. After removing MS Updale for wsl - wsl starts working but Docker reinstalls this update on installation and everything crashes immediately. |
Just had this problem today and found this thread. As others reported, uninstalling the update has fixed the issue for me also. Hopefully a permanent resolution will be sorted soon to allow the updates. |
Same issue, can only run wsl with admin rights, everything else fails. Have to manually run it on admin. |
Running a Terminal as Administrator seems to work. This is problematic for the terminal in VSCode however. |
@mikeputnam Right, VSCode does not update extensions when running as Administrator. This is not a useful solution. |
I had the same problem, but I solved it by reinstalling the previous version (4.24.2.0) of docker desktop. |
tl;dr EDITED: Currently I only left the entry with Same here, after removing entry in Apps & Features as in picture above the one with tinier tux icon (localised label in the picture)
EDITED: At least (partial workaround) I was able to run EDITED: Reverted everything to the Windows-Store version for now and am back at OP's error:
|
Same problem. I tried to roll back the update and install an older version of WSL, and it did not work. |
@SinisterGaze 's solution worked for me as well on Windows 10 #10767 (comment) |
So, it seems that @SinisterGaze's solution works. The problem is that now I cannot use docker desktop. It tries to run wsl --update and fails to do so. |
Ok, so I think I can have everything working. So, follow @SinisterGaze's instructions and remove the update. Then, if needed, install wsl kernel update from https://www.catalog.update.microsoft.com/Search.aspx?q=wsl |
Doesn't work for me, since I don't have that 8kb file. Also doing the Kernel Update doesn't help. Tried de-installing everything and re-installing, nothing work. Running Terminal in admin works, but that's not really a solution. Docker Desktop still not functional. |
Just in case it helps someone:
Originally posted by @OneBlue in #10782 (comment) Then all seems back to normal:
|
I have the same 8kB file, but it doesn't work after I delete it. So sad. |
Hey folks if you're seeing this error can you please try upgrading to version 2.0.11 which should have a fix! You can do this by running Please let us know if that fixed this issue, thank you! |
Thank you! |
excellent!!!! |
My version of the WSL I had to uninstall was something like 168MB and not 8KB (the one with the "smaller" icon). |
I had the run the command 3 times (It was stuck the first time, appeared to have worked the second time) but after a reboot the problem remained present. updating a 3rd time did the trick. Thank you |
I had given up, and attempted to remove and reinstall the WSL feature. The removal hit a snag partway through and stopped. I rebooted the system, re-enabled the WSL feature, attempted a re-installation, then ran the magic incantation:
To my total amazement, it worked! |
This worked for me, thanks! |
Fixed in 2.0.11 |
Windows Version
Microsoft Windows [Version 10.0.19045.3570]
WSL Version
2.0.9.0
Are you using WSL 1 or WSL 2?
Kernel Version
Linux version 5.15.133.1-microsoft-standard-WSL2 (root@1c602f52c2e4) (gcc (GCC) 11.2.0, GNU ld (GNU Binutils) 2.37) #1 SMP Thu Oct 5 21:02:42 UTC 2023
Distro Version
Debian 11.8
Other Software
No response
Repro Steps
Today wsl stopped working, I cannot acces it - all i am getting is error that object doesnt exist no matter what i do. Error messages are completely unhelpful.
From standart powershell, i cant do anything, but if I run it with elevated privileges as admin, suddenly i can see the distro, run in, use it, etc.
same goes for windows terminal, launching linux apps, and so on. I need to run them as admin, or nothing works.
I have no clue what caused this deranged behavior, because until today I did not need to run anything wsl related as admin...
Expected Behavior
I should be able to use wsl with standard user privileges, not only as admin.
Actual Behavior
standart powershell (run with normal user permisions)
powreshell with elevated privileges
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: