I executed the wsl_update_x64 file without following any of the additional steps required to update from wsl to wsl2. It seemed to run without any issues, however, as I had not completed the other required steps, it didn't upgrade me to wsl2.
Now when executing the wsl_update_x64 file after completing the additional required steps to upgrade, I get the error: "This update only applies to machines with Windows Subsystem for Linux" and I am stuck with version 1.
Any advise on how to get the file to execute under these circumstances?
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
Just go to "Apps & features", scroll down until you see "Windows subsystem for Linux Update".
Uninstall it then re-install.
I have just got it working by running wsl_update_x64 from powershell with admin rights as opposed to double clicking.
It won't prompt for elevated permissions,need to be rum from elevated cli
Ensure to run wsl_update_x64.msi as an admin!
@baonguyenhcm Thanks, now is working!
I eventually got it installed by running:
wsudo msiexec -fav wsl_update_x64.msi
Disclaimer: I'm the author of wsudo.
Thanks @craigloewen-msft for bringing me here. Would https://github.com/microsoft/WSL be a more proper to report issues?
Here the fix for the issue.
Restarting my machine solved the issue.
For me the solution was to go to "Apps & Features" / "Programs & Features" / "Turn Windows features on or off", and check the "Windows Subsystem for Linux".
Somehow that setting was unchecked.
Most helpful comment
I have just got it working by running wsl_update_x64 from powershell with admin rights as opposed to double clicking.