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

Any wsl command is met with access denied after installing ubuntu 24 #11560

Open
1 of 2 tasks
jsandr opened this issue May 6, 2024 · 9 comments
Open
1 of 2 tasks

Any wsl command is met with access denied after installing ubuntu 24 #11560

jsandr opened this issue May 6, 2024 · 9 comments

Comments

@jsandr
Copy link

jsandr commented May 6, 2024

Windows Version

Microsoft Windows [version 10.0.22631.3527]

WSL Version

'Access denied' | ubutnu 24.04 LTS or Ubuntu 20.04.6 LTS

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

Access denied

Distro Version

Ubuntu 24.04 LTS

Other Software

Wsl Ubuntu 20.04.6 LTS
Windows Terminal Version : 1.19.11213.0
Powershell 7.4.2

I had wsl2 with ubuntu 20 for a while, no issue there. I wanted to switch to the latest LTS and added ubuntu 24 through the store. Using Terminal it worked fine. I did not want to unregister the previous ubuntu version until I was sure I would still have everything working fine. Booting my computer this morning, every wsl command is met with 'access denied'.

Edit: Running as admin does no difference.

Repro Steps

Install Ubuntu 24 through the store, reboot the computer.

  1. Open a terminal and run > wsl

  2. Try to read wsl installed distros: > wsl -l

Expected Behavior

  1. Wsl default distro is launched.
  2. Powershell returns the list of installed linux distributions

Actual Behavior

PS C:\Users\jsandrin> wsl
Accès refusé.
PS C:\Users\jsandrin> wsl -l
Accès refusé.

Diagnostic Logs

WslLogs-2024-05-06_10-09-13.zip

Copy link

github-actions bot commented May 6, 2024

Logs are required for review from WSL team

If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'.
Otherwise please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.

How to collect WSL logs

Download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:

Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force
.\collect-wsl-logs.ps1

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
If you choose to email these logs instead of attaching to the bug, please send them to wsl-gh-logs@microsoft.com with the number of the github issue in the subject, and in the message a link to your comment in the github issue and reply with '/emailed-logs'.

View similar issues

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

Copy link

github-actions bot commented May 6, 2024

View similar issues

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

Diagnostic information
Issue was edited and new log file was found: https://github.com/microsoft/WSL/files/15218242/WslLogs-2024-05-06_10-09-13.zip
Detected appx version: 2.2.4.0

@jsandr
Copy link
Author

jsandr commented May 6, 2024

Similar issues seems to all have been closed without author answers.

Launching Ubuntu from the store does not work either.

I just found out that I can run the wsl program but not the 'ubuntu' one.
Inside wsl I could check my version:

jsandr@SST-JSA:~$ uname -a
Linux SST-JSA 5.15.153.1-microsoft-standard-WSL2 #1 SMP Fri Mar 29 23:14:13 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

As shown in this screenshot I was able to run wsl but not ubuntu
ubu

@OneBlue
Copy link
Collaborator

OneBlue commented May 7, 2024

Thank you @jsandr.

Looking at the logs, this looks like the MSIX installation might be broken, but I wonder if you can call wsl.exe directly.

Does calling: C:\Program Files\WSL\wsl.exe work ?

@jsandr
Copy link
Author

jsandr commented May 7, 2024

Hi @OneBlue, yes wsl.exe does work.

@OneBlue
Copy link
Collaborator

OneBlue commented May 7, 2024

Hi @OneBlue, yes wsl.exe does work.

Ok then this is indeed an MSIX issue.

Does re-installing the latest package solve the issue ?

@jsandr
Copy link
Author

jsandr commented May 13, 2024

Hi,
Re-installing throws this:
install_ubu

As any wsl commands are refused I could not un-register Ubuntu 24, so I went to 'add or remove apps' and uninstalled both Ubuntu 20 and 24. Removed all startup calls to wsl or terminal. Rebooted then tried install via the .msi
After it failed I went to the store, installed Ubuntu 24 again (it worked ?!). Now I'm back with an Ubuntu 24 app but still unable to launch it directly.
Only noticeable difference is that now when trying to launch a wsl command via powershell this is the answer I have:
wsl_shut

@jsandr
Copy link
Author

jsandr commented May 27, 2024

Anyone else with a better idea than re-installing in loops until it starts working again ?

@withinboredom
Copy link

No, but I'm also having massive issues with ubuntu 24. After about 10 minutes, systemd entirely locks up (took forever just to get that much information) and it seems the last windows update did it in. Super frustrating.

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