-
Notifications
You must be signed in to change notification settings - Fork 823
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
Update to WSL2 2.0.1 failed - requires admin, still doesn't update #10539
Comments
I have had exactly the same results as @rfay. |
Thank you for reporting this @rfay. This is indeed a regression and it will be fixed in the next release. Until it's fixed the workaround is to manually download the update package and install it by opening it in the explorer. Also yes wsl --update requires administrator access now. |
The title should read Also, starting with wsl 2.0.0, admin privilege is required to perform wsl upgrades -- a separate disappointing new development. |
This is disappointing from a managed-system perspective. Users previously had a one-time interaction with the service desk to install the proper role and then were able to operate independently. I'm sure there are valid technical concerns - but this means any update to WSL will require a service desk interaction. |
Not sure if this issue applies to upgrading from 2.0.0.0 to 2.0.1.0 only. Upgrading from 1.3.17.0 to 2.0.1.0 did work:
The commands were run from an elevated pwsh session. On a different system with the latest Canary installation upgrading from 2.0.0.0 to 2.0.1.0 failed. |
You should still be be able to install via the store if you wish so, but you'll need to open the store manually. |
Yes this is expected because the bug that breaks the installation was introduced in 2.0.0. |
Does the store require admin? If no - why a difference in functionality/privileges required between the store and command line? |
BTW one suggestion I have is to automatically ask to elevate privileges when upgrading, instead of requiring the user to reopen the session as admin. |
This would be better than simply failing - but it doesn't solve underlying issue of requiring the user to have local privileges to upgrade when this was required previously. |
This issue has been fixed in 2.0.2 |
I still have this issue (requiring admin rights) when upgrading from 2.0.0 to 2.0.2. I have not tested with admin rights (don't have access to service desk right now) |
I was also not able to update but I've now broken my install. An install, uninstall, or conversion is in progress for this distribution I've also tried wsl --update --web-download but that gives me The package installation failed because a version of the service exists outside of APPX packaging. Any suggestions as to how to get out of this fix? |
Thankfully, I was able to fix it by removing WSL via the Apps & features app and reinstalling with wsl --update --web-download followed by I did both as administrator. |
This update also broke me. It looked like it was working, but then after the upgrade to 2.0.2, I seem to have recovered (thanks @dciarniello ) with:
I did not lose my distro. |
Your procedure does not work for me. After |
Was stacked in 2.0.1. Followed @rfay procedure and now I have successfully upgraded to 2.0.9. Cheers |
Hey guys; I had the same problem. every thing failed it turned out that i had an old version of wsl to solve the problem i.e double "update" now it works, hoping it helps |
Windows Version
Microsoft Windows [Version 10.0.22621.2283]
WSL Version
2.0.0.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.123.1-microsoft-standard-WSL2
Distro Version
Ubuntu 22.04
Other Software
No response
Repro Steps
wsl --update --pre-release
Expected Behavior
It should update. (And has typically done so without admin privs)
Actual Behavior
Diagnostic Logs
I studied the logs at
C:\Users\testbot\AppData\Local\Temp\wsl-install-logs.txt
and saw that it was insufficient permissions.So I did it again with admin privs and it ran to completion without an error.
I don't believe
wsl --update
has required admin before?However,
wsl.exe --version
still shows 2.0.0.0 after a reboot.The text was updated successfully, but these errors were encountered: