Access is denied
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
Diagnostic information
Appx package is not installed
Thank you for reporting this @caelon. This looks like an MSIX issue. Does installing the latest MSI package solve the issue ?
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
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
This resolved itself eventually. I do not have any idea what fixed it.