-
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
After installing latest WSL, get Wsl/E_ACCESSDENIED when trying to start/use WSL #9834
Comments
Thank you for reporting this @AnthonyHayes72. Can you share the output of |
Can you also share a screen shot of |
I cannot run wsl.exe when in this state, I get the same errors in the report for any wsl command. |
Interesting. Can you capture logs for wsl.exe --version ? I wonder if it would be easier to root cause the error from there |
Image shows workflow - wsl working until I do wsl --update After update wsl --version produces error. Log files attached for wsl -- version execution Thank you, |
Thank @AnthonyHayes72. Looking at the logs it's pretty clear that there's one registry key with an unexpected value that's confusing WSL. Given that wsl --version is failing as well, I think it's probably Can you share a screenshot of that key ? |
Here's the reg key - again thanks for your help... |
I have had my work pc updated to Windows 11 and everything is working now - thank you for your help @OneBlue |
Ah too bad I was hoping to root cause the issue. Glad the issue is resolved though. Closing. |
I had the same issue. This is what helped me:
|
seems like nothing has changed
|
@d0zer11st: Can you share /logs ? |
Hello! Could you please provide more logs to help us better diagnose your issue? To collect WSL logs, download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:
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 Thank you! |
Sure. |
i have the same issue, can you help me @OneBlue ? i dont really understand with these log (0x80040153) seems like you really know how to root the cause of the issue😅 edited 2 days later = "nevermind, i choose to install ubuntu instead of wsl2, thanks btw |
Have the original issue with ACCESSDENIED when trying to install pre-release versions:
|
Thank you for reporting this @nikolaikopernik. Can you share logs when you see this error ? |
Thank you @nikolaikopernik. Do you get the same result if you run the command in an elevated prompt ? |
Yes, ran it as an admin - same result |
Interesting. Do you see the same issue if you manually download and install the latest build of WSL ? |
I am having the same issue. Tried with Administrator and also tried the latest build of WSL
|
@OneBlue |
Windows Version
Microsoft Windows 10 Enterprise 19044.2728
WSL Version
Store version - tying to run wsl.exe gives error
Are you using WSL 1 or WSL 2?
Kernel Version
same error using wsl.exe
Distro Version
Ubuntu 20.04.5 LTS
Other Software
N/A
Repro Steps
Enable Windows Subsystem for Linux feature and restart
Use admin command prompt...
wsl --set-default-version 2
wsl --install -d Ubuntu
All good so far
wsl --update (or install latest from microsoft store)
After install completes, any further interactions give error...
Error code: Wsl/E_ACCESSDENIED
or
Invalid value for registry
Error code: Wsl/0x80040153
If command actioned from admin console.
Similarly selecting WSL from start menu gives ACCESSDENIED error
Expected Behavior
WSL commands to be executed correctly
Actual Behavior
Diagnostic Logs
WslLogs-2023-03-23_10-04-05.zip
The text was updated successfully, but these errors were encountered: