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

Created on 6 Apr 2020  Â·  9Comments  Â·  Source: MicrosoftDocs/WSL

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.

  • ID: 5d720f69-aff2-38d8-f0c6-9909e94acaa2
  • Version Independent ID: 9d121625-e741-6d20-f3de-201a939290b8
  • Content: Updating the WSL 2 Linux kernel
  • Content Source: WSL/wsl2-kernel.md
  • Product: dev-environment
  • Technology: windows-subsystem-for-linux
  • GitHub Login: @craigloewen-msft
  • Microsoft Alias: crloewen

Most helpful comment

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

All 9 comments

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.

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

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

taoyichen picture taoyichen  Â·  8Comments

skycommand picture skycommand  Â·  7Comments

CeciAc picture CeciAc  Â·  7Comments

m4tt72 picture m4tt72  Â·  4Comments

Oxfos picture Oxfos  Â·  3Comments