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

wsl --update and MSI require Admin rights #11652

Closed
1 of 2 tasks
byjrack opened this issue Jun 4, 2024 · 6 comments
Closed
1 of 2 tasks

wsl --update and MSI require Admin rights #11652

byjrack opened this issue Jun 4, 2024 · 6 comments

Comments

@byjrack
Copy link

byjrack commented Jun 4, 2024

Windows Version

10.0.22621.3593

WSL Version

2.0.0.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

5.15.123.1-1

Distro Version

n/a

Other Software

n/a

Repro Steps

wsl --update fails with a 1603 (attempt to update to 2.1.5 gives a Wsl/UpdatePackage/E_ABORT)

Download of 2.1.5 from releases and install as MSI also requires Admin for all actions in the MSI. Tried MSIINSTALLPERUSER but no change.

winget install Microsoft.WSL shows the VMP and OS feature requirement which are already installed, but the get-optfeature and capability cmdlets require elevation so status may be inaccurate.

Expected Behavior

Updates would function without Admin

Actual Behavior

Updates require Admin

Diagnostic Logs

I am just trying to get a consistent approach to managing WSL in the environment. It seemed like with it in Store and semi-recent updates it was happy to update as a User. UAC requires some extra steps in my org so it pushes me into a bunch of extra activities and overhead to keep WSL up to date. I get that WSL2 needs to play with some OS level features like Host Network Service so if maintaining WSL requires Admin I can work to that as the standard, but it seems like a moving target.

wsl-install-logs.txt

Copy link

github-actions bot commented Jun 4, 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 [email protected] 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!

Closed similar issues:

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

@byjrack
Copy link
Author

byjrack commented Jun 4, 2024

And def aligned w #10591 as I see the same signature with it stuck on 2.0.0.0. Now given WSL was pulled from the Store that really might be a hint that installs and updates really need elevation now.

I did check and I can install the MSI as SYSTEM, but running wsl commands still gives an error. I can fall back to Lxss registry checks though to make sure it was updated.

So would be great to get the confirmation that wsl --update will need elevation from here on out either though winget, MSI, or wsl cli.

@OneBlue
Copy link
Collaborator

OneBlue commented Jun 4, 2024

@byjrack: if you have the store installed, you should be able to update via the store once WSL is installed.

You can use this link to access the WSL page: https://aka.ms/wslstorepage

@OneBlue OneBlue closed this as completed Jun 4, 2024
@byjrack
Copy link
Author

byjrack commented Jun 4, 2024

Yeah doesn't seem to work as Store isn't keeping it updated and if it requires admin from 2.0.0 forward that won't work.

https://apps.microsoft.com/detail/9p9tqf7mrm4r still exists which is what we had syndicated via Intune, but looks to not have been updated in a while.

@OneBlue
Copy link
Collaborator

OneBlue commented Jun 4, 2024

The store app is up to date. It's currently on the latest release (2.1.5).

@byjrack
Copy link
Author

byjrack commented Jun 4, 2024

¯_(ツ)_/¯

Maybe it's the lack of admin rights for users, but doesn't seem to be working for us or we are syndicating the wrong store id.

So is there a method to keep wsl updated without admin?

If Store is that method I can dig into ime logs to see if there is something, but if it's not using msix model than given the user scope it would fail. I know when I checked Winget as well I only got the Microsoft.wsl entry as well from Winget portal and not the Store entry. That's why I figured the Store option was on ice.

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

2 participants