MicrosoftDocs / WSL

Source code behind the Windows Subsystem for Linux documentation.
https://docs.microsoft.com/windows/wsl
Other
1.89k stars 562 forks source link

Error: This update only applies to machines with Windows Subsystem for Linux #616

Closed cnotti closed 4 years ago

cnotti commented 4 years ago

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?


Document details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

baonguyenhcm commented 4 years ago

Just go to "Apps & features", scroll down until you see "Windows subsystem for Linux Update". Uninstall it then re-install.

cnotti commented 4 years ago

I have just got it working by running wsl_update_x64 from powershell with admin rights as opposed to double clicking.

Pearseak commented 4 years ago

It won't prompt for elevated permissions,need to be rum from elevated cli

ACure4IT commented 4 years ago

Ensure to run wsl_update_x64.msi as an admin!

alexsvt2 commented 4 years ago

@baonguyenhcm Thanks, now is working!

noseratio commented 4 years ago

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?

sonook commented 3 years ago

Here the fix for the issue.

https://youtu.be/4czn-4uu65c

SavvyShah commented 3 years ago

Restarting my machine solved the issue.

akela1101 commented 3 years ago

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.

jonatansmith commented 3 years ago

Restarting my machine solved the issue.

Resolved for me too. Thanks for this comment.

robertomarvin123 commented 3 years ago

Reinicie e deu certo!

Reiniciar minha máquina resolveu o problema.

ngabipoly commented 3 years ago

This resolved it for me

dyener commented 3 years ago

In PowerShell Start-Process .\wsl_update_x64.msi

This resolved it for me

ekosis commented 2 years ago

In PowerShell Start-Process .\wsl_update_x64.msi

This resolved it for me

OMG.... working.... thank you

Wu-yikun commented 2 years ago

This blog may help you: https://blog.csdn.net/qq_39611230/article/details/117362198 but it can't help me 😭

GHCMelo commented 2 years ago

In PowerShell Start-Process .\wsl_update_x64.msi

This resolved it for me

OMG! I've tried so many things, but only this worked!

ghost commented 2 years ago

In PowerShell Start-Process .\wsl_update_x64.msi

This resolved it for me

I tried this with admin rights on PowerShell and it worked for me! Thaks!