Skip to content
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

Access is denied after doing wsl --update #8055

Closed
1 of 2 tasks
prajaybasu opened this issue Feb 15, 2022 · 7 comments
Closed
1 of 2 tasks

Access is denied after doing wsl --update #8055

prajaybasu opened this issue Feb 15, 2022 · 7 comments

Comments

@prajaybasu
Copy link

prajaybasu commented Feb 15, 2022

Version

Microsoft Windows [Version 10.0.22543.1000]
WSL version: 0.51.3.0 (WSL Preview from Store)

WSL Version

  • WSL 2
  • WSL 1

Kernel Version

5.10.60.1

Distro Version

Ubuntu from store. Manually upgraded to 21.10 but it's not relevant since wsl.exe also fails.

Other Software

No response

Repro Steps

  • Update to WSL Preview on Windows store using wsl --update or by installing it through Store
  • Restart Windows

Expected Behavior

The wsl command and ubuntu command run as expected

Actual Behavior

The wsl command and ubuntu commands fail with this error:

PS C:\Users\Prajay> wsl.exe
Access is denied.
PS C:\Users\Prajay> ubuntu
Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x80070005
Error: 0x80070005 Access is denied.

I had to uninstall the Windows store version of WSL to get wsl running normally again. The issue doesn't happen until I restart after installing it.

Diagnostic Logs

No response

@ghost
Copy link

ghost commented Feb 15, 2022

Hello! I think I know what is happening with this issue but could you please submit logs so I can confirm? This might be a session 0 issue which we want to add support for in Store WSL. /logs

@ghost
Copy link

ghost commented Feb 15, 2022

Hello! Could you please provide more logs to help us better diagnose your issue? You can find instructions on how to attach logs here, please make sure to post the link to the Feedback Hub item in this chat so we can see it.

Thank you!

@prajaybasu
Copy link
Author

wsl_etl.zip

@ghost ghost removed the needs-author-feedback label Feb 16, 2022
@benhillis benhillis assigned ghost Feb 16, 2022
@benhillis
Copy link
Member

@prajaybasu - can you share more specific repro steps? Running wsl.exe with zero arguments should never return an error about WslRegisterDistribution.

@prajaybasu
Copy link
Author

prajaybasu commented Feb 17, 2022

@prajaybasu - can you share more specific repro steps? Running wsl.exe with zero arguments should never return an error about WslRegisterDistribution.

My bad, edited the logs

@owenschupp While regular WSL works fine. I realized now that it might be related to me changing some permissions of the C:\ProgramData\Packages folder so I could view the contents. No other package (including Terminal in admin mode) was affected by this though, so I'm not sure why only WSL (Store Preview) is failing.

@ghost ghost removed the needs-author-feedback label Feb 17, 2022
@ghost ghost removed their assignment Feb 22, 2022
@JohnSF1
Copy link

JohnSF1 commented Apr 4, 2023

Dear sir/madam,

This thread problem has re-appeared again via the latest WSL.

WSL version: 1.1.7.0
Kernel version: 6.1.21.1-1
WSLg version: 1.0.51
MSRDC version: 1.2.3770
Direct3D version: 1.608.2-61064218
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.23424.1000

WslLogs-2023-04-04_18-01-16.zip

Copy link
Contributor

This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants