WSL icon indicating copy to clipboard operation
WSL copied to clipboard

wsl_update_x64.msi unable to run because "This update only applies to machines with the Windows Subsystem for Linux"

Open resigned opened this issue 6 years ago • 38 comments

  • Your Windows build number: (Type ver at a Windows Command Prompt) Microsoft Windows [Version 10.0.19041.172]

  • What you're doing and what's happening: (Copy&paste the full set of specific command-line steps necessary to reproduce the behavior, and their output. Include screen shots if that helps demonstrate the problem.)

I am trying to run the kernal updater tool and I'm receiving an error that "This update only applies to machines with the Windows subsystem for Linux

  • What's wrong / what should be happening instead:

I am unable to update the kernel and use WSL 2

resigned avatar Apr 02 '20 04:04 resigned

I didn't mention this but I definitely have WSL 1 installed, I updated Windows with the intention of installing WSL 2. WSL 1 still runs fine.

resigned avatar Apr 02 '20 13:04 resigned

See #5014

onomatopellan avatar Apr 02 '20 20:04 onomatopellan

Thanks.

resigned avatar Apr 02 '20 23:04 resigned

the same thing is happening to me I have WSL 1 already installed but WSL Update is not working

DeathNet123 avatar Jun 16 '20 17:06 DeathNet123

Same behaviour: WSL1 installed, unable to update. Error: "This update only applies to machines with the Windows Subsystem for Linux".

simonpfeifhofer avatar Jun 19 '20 12:06 simonpfeifhofer

Same here, did someone succeed fixing this problem?

  • Updated Windows, for 2004 version and Build 19041
  • Ran the command "dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart" then restart the pc
  • then installed the kernel update (https://docs.microsoft.com/en-us/windows/wsl/wsl2-kernel)

just as is instructed by MS https://docs.microsoft.com/en-us/windows/wsl/install-win10#update-to-wsl-2

gbr5 avatar Jun 25 '20 17:06 gbr5

https://github.com/MicrosoftDocs/WSL/issues/616#issuecomment-609574285

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

ultrawebmarketing avatar Jun 25 '20 19:06 ultrawebmarketing

Yep this the installer doesn't request admin..

streaky avatar Jun 26 '20 06:06 streaky

MicrosoftDocs / WSL # 616 (comentario)

Acabo de hacerlo funcionar ejecutando wsl_update_x64 desde powershell con derechos de administrador en lugar de hacer doble clic.

Its works!

ofaaoficial avatar Jun 26 '20 15:06 ofaaoficial

no funciona

cristianaxion avatar Sep 18 '20 03:09 cristianaxion

I found the working solution, please try and let me know the result.

Procedure to fix the issue :-

  1. Open "turn windows features on or off"
  2. Uncheck both "Virtual Machine Platform" and "Windows subsystem for Linux"
  3. Press OK
  4. Reboot your system
  5. Open "turn windows features on or off" again
  6. Now check both "Virtual Machine Platform" and "Windows subsystem for Linux"
  7. Press OK
  8. Reboot your system again
  9. Now run the wsl_update_x64.msi again, it should install successfully now
  10. Go to powershell and run wsl command

Demo Video for graphical representation

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

sonook avatar Nov 18 '20 19:11 sonook

@sonook comment is blatant spam

ultrawebmarketing avatar Nov 18 '20 19:11 ultrawebmarketing

I don't know what @ultrawebmarketing is talking about. @sonook solved my problem.

Opus4210 avatar Nov 22 '20 03:11 Opus4210

@sonook 's solution worked for me. Thanks!

darer avatar Nov 26 '20 08:11 darer

I got the issue today with 10.0.19042.685 (20H2) and the workaround proposed by sonook also worked for me. By the way a typo can be noticed in the error message : "This update only applies to machines with the Windows subsytem for Linux", with a missing "s" in subsystem.

t-vert avatar Dec 27 '20 17:12 t-vert

@sonook 's solution works for me. Thanks!!

vincentkenny avatar Jan 13 '21 07:01 vincentkenny

@sonook 's solution worked for me also. Thanks.

MattConrad avatar Jan 21 '21 22:01 MattConrad

@sonook's solution worked for me.

pe-pan avatar Feb 04 '21 19:02 pe-pan

+1 for @sonook 's solution, this error is hideous!

Edit: I've run the installer as admin, I've launched it from the powershell with admin rights, nothing worked except turning the features off and on.

m-dz avatar Feb 12 '21 15:02 m-dz

Check your BIOS to ensure virtualization support is turned on...

muhnick avatar Mar 06 '21 05:03 muhnick