Closed GavBurke closed 2 months ago
Try uninstalling the Window Subsytem for Linux app, restart and if the wsl command works again run wsl --update
, this procedure won't destroy your linux installation
Try uninstalling the Window Subsytem for Linux app, restart and if the wsl command works again run
wsl --update
, this procedure won't destroy your linux installation
Will give this a try thanks. Opening the "Ubuntu on Windows" app itself actually does work and open WSL in fact, it's just the wsl.exe via Command Prompt/Powershell seems to now have the Access Denied.
I'm wondering if this was user or error, or even how this happened, but the problem turned out to be inside my users gavinbu folder, an empty wsl.exe had been created!! So then when I was running wsl.exe from a default cmd, it ran this wsl.exe instead of the one from the windows path, hence the error. Changing directory to say root of C:\ then allowed my wsl.exe -l -v
still able to run, so this issue for me is now fixed, but not sure if those steps listed causes this, or it was me running an incorrect command....
Type of issue
Code doesn't work
Feedback
I followed the expanding WSL2 VHDX and now I cannot launch wsl.exe at all, not even from an admin CMD, getting Access Denied in the CLI but a popup saying "This app can't run on your PC"
Page URL
https://learn.microsoft.com/en-us/windows/wsl/disk-space
Content source URL
https://github.com/MicrosoftDocs/wsl/blob/main/WSL/disk-space.md
Author
@craigloewen-msft
Document Id
73eaaa84-4649-3c39-6116-1c62b713a4c3