WSL icon indicating copy to clipboard operation
WSL copied to clipboard

Access is denied

Open caelon opened this issue 1 year ago • 6 comments

Windows Version

Version 10.0.26100.4946

WSL Version

0.0.0.0

Are you using WSL 1 or WSL 2?

  • [x] WSL 2
  • [ ] WSL 1

Kernel Version

No response

Distro Version

No response

Other Software

No response

Repro Steps

Right click on Start - Terminal (admin) wsl.exe --install Downloads and then Shows Access is Denied error

Expected Behavior

I was expecting it to install WSL

Actual Behavior

PS C:\Users(username)> wsl.exe --install Downloading: Windows Subsystem for Linux 2.5.10 Access is denied.

Diagnostic Logs

WslLogs-2025-08-16_15-15-16.zip

caelon avatar Aug 16 '25 19:08 caelon

Diagnostic information
Appx package is not installed

github-actions[bot] avatar Aug 16 '25 19:08 github-actions[bot]

Thank you for reporting this @caelon. This looks like an MSIX issue. Does installing the latest MSI package solve the issue ?

OneBlue avatar Aug 18 '25 21:08 OneBlue

The package seemed to run. I rebooted and then tried multiple different installs (wsl.exe --install; --install Ubuntu-24.04; --install --web-download) but they all came back with:

Access is denied. Error code: Wsl/InstallDistro/E_ACCESSDENIED

caelon avatar Aug 23 '25 18:08 caelon

Adding newest logs

WslLogs-2025-08-23_14-30-41.zip

caelon avatar Aug 23 '25 18:08 caelon

Diagnostic information
Detected appx version: 2.6.1.0
Detected user visible error: Wsl/InstallDistro/E_ACCESSDENIED
Detected user visible error: Wsl/InstallDistro/E_ACCESSDENIED
Detected user visible error: Wsl/InstallDistro/E_ACCESSDENIED

github-actions[bot] avatar Aug 23 '25 18:08 github-actions[bot]

This resolved itself eventually. I do not have any idea what fixed it.

caelon avatar Sep 26 '25 13:09 caelon