Skip to content

WSL 2 requires an update / The update only applies to machines with WSL #5014

Closed

Description

  • Your Windows build number: Microsoft Windows [Version 10.0.19041.153]

  • What you're doing and what's happening:
    I'm starting Ubuntu for Windows and I immediately receive the following message:
    WSL 2 requires an update to its kernel component. For information please visit https://aka.ms/wsl2kernel.
    This has happened before, so I simply go to the website mentioned and download the update. No big deal. But when I run the update this message pops up: This update only applies to machines with the Windows Subsytem for Linux (there's a small typo in the message, by the way).

What do I do now? Seems I'm stuck between updates...

Activity

  1. Jimbles commented on Mar 27, 2020

    @Jimbles

    I have the same problem with build 19041.172, I have used WSL1 before switching to the insiders program without issue

  2. onomatopellan commented on Mar 27, 2020

    @onomatopellan

    For WSL2 you will need 2 Windows components so make sure they are already enabled:
    Microsoft-Windows-Subsystem-Linux
    VirtualMachinePlatform

    Also it seems some people have problems with the installer extracting the kernel.
    You can always extract it manually with:
    msiexec /a "wsl_update_x64.msi" /qb TARGETDIR="C:\temp"
    and then copy the kernel file from C:\temp to C:\Windows\System32\lxss\tools

    Final version shouldn't have this problem since the install comes from Windows Update.

  3. nphmuller commented on Mar 28, 2020

    @nphmuller
    Author

    Jonathan (@onomatopellan) I had WSL2 working already, so I have both enabled. After an update it asked me to update WSL2 manually by downloading and executing the MSI file. On a previous update that worked perfectly and WSL2 worked again after updating. On this update however I receive the error message I described when executing the MSI file.

    Thanks for the workaround! I'll try it out next week, when I have the system with this issue available again.

  4. sandys commented on Mar 28, 2020

    @sandys

    im having this exact same issue. im on release 2004 (19041.172)

    I'm stuck between updates. and my dev system is down.

  5. sandys commented on Mar 28, 2020

    @sandys

    ok - i figured out the issue. the new update does not uninstall the old one (the slow insider ring one).

    I right clicked the old msi - uninstalled it. now i can install the new one .

  6. Jimbles commented on Mar 30, 2020

    @Jimbles

    Sandeep Srinivasa (@sandys) Thanks! That worked for me :)

  7. tasahi commented on Apr 2, 2020

    @tasahi

    Jonathan (@onomatopellan) , thanks. It worked for me just fine. It seems that some Win update erases the kernel file.

  8. friday963 commented on Apr 4, 2020

    @friday963

    ok - i figured out the issue. the new update does not uninstall the old one (the slow insider ring one).

    I right clicked the old msi - uninstalled it. now i can install the new one .

    Can you expand on this? I'm not sure where you found the MSI to uninstall.

    I tried the recommended advice from Jonathan (@onomatopellan)
    msiexec /a "wsl_update_x64.msi" /qb TARGETDIR="C:\temp"
    and then copy the kernel file from C:\temp to C:\Windows\System32\lxss\tools

    But I still cannot get it to work.
    I don't have a kernel file after executing those commands, its just an MSI file and when I click the file it says "The specified account already exists" and fails.

  9. onomatopellan commented on Apr 4, 2020

    @onomatopellan
  10. friday963 commented on Apr 4, 2020

    @friday963
  11. swaroop1 commented on Apr 6, 2020

    @swaroop1

    Sandeep Srinivasa (@sandys) Thanks that worked for me!!

    We need to uninstall " Windows Subsystem for Linux Update " just as we would uninstall a regular windows application

  12. etdecode commented on Apr 10, 2020

    @etdecode

    ok - i figured out the issue. the new update does not uninstall the old one (the slow insider ring one).

    I right clicked the old msi - uninstalled it. now i can install the new one .

    "Right clicked the downloaded msi" would have been correct.
    Thanks!!!

  13. jakemitchellxyz commented on Apr 30, 2020

    @jakemitchellxyz

    ok - i figured out the issue. the new update does not uninstall the old one (the slow insider ring one).
    I right clicked the old msi - uninstalled it. now i can install the new one .

    "Right clicked the downloaded msi" would have been correct.
    Thanks!!!

    This solved it for me!

  14. baoanhng commented on Apr 30, 2020

    @baoanhng

    Solved issue for me. We need to uninstall the latest one, then install it with downloaded kernel from the website.

  15. skipper46 commented on May 6, 2020

    @skipper46

    Solved issue for me. The problem was the path "C:\Users<UserName>\Downloads\wsl_update_x64.msi" to msi installation file.
    I copied file to "C:\Temp\wsl_update_x64.msi", double-clicked and was installed OK.

  16. 95 remaining items

  17. ilham76c commented on Feb 3, 2023

    @ilham76c

    I'm running on the same issue.

    Running on Win version: 2004, Compilation: 19640.1

    Here are the steps I did:

    Power Shell:

    • Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
    • dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
    • dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

    Microsoft Store:

    • Get the Ubuntu (Plain , not the 18 or 20 dist)

    After install the Ubuntu and restart pc, on CMD:

    • system32>wsl -l -v

    It shows: NAME STATE VERSION Ubuntu Stopped 1

    Then, update the WSL2 Kernel:

    Back to CMD:

    • wsl --set-version Ubuntu 2

    The error prompts:

    • WSL2 requires an update to you Kernel component. To get more info please go to aka ms.

    Checking the version and stays on Version 1:

    • system32>wsl -l -v

    NAME STATE VERSION Ubuntu Stopped 1

    Tried to uninstall the manual update to WSL2 and installing it again, but the error keeps the same.

    How can I solve this?

    I'm running on the same issue.

    Running on Win version: 2004, Compilation: 19640.1

    Here are the steps I did:

    Power Shell:

    • Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
    • dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
    • dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

    Microsoft Store:

    • Get the Ubuntu (Plain , not the 18 or 20 dist)

    After install the Ubuntu and restart pc, on CMD:

    • system32>wsl -l -v

    It shows: NAME STATE VERSION Ubuntu Stopped 1

    Then, update the WSL2 Kernel:

    Back to CMD:

    • wsl --set-version Ubuntu 2

    The error prompts:

    • WSL2 requires an update to you Kernel component. To get more info please go to aka ms.

    Checking the version and stays on Version 1:

    • system32>wsl -l -v

    NAME STATE VERSION Ubuntu Stopped 1

    Tried to uninstall the manual update to WSL2 and installing it again, but the error keeps the same.

    How can I solve this?

    thanks, I just downloaded the wsl2 kernel then installed it, and all problems solved.

  18. schuberng commented on Feb 19, 2023

    @schuberng

    friday963 Something is broken in your install. Follow this and try again: https://support.microsoft.com/en-us/help/17588/windows-fix-problems-that-block-programs-being-installed-or-removed

    BTW the msi file you need is here https://aka.ms/wsl2kernel

    I should say thank you for posting a tool that help fixing issues for program improperly uninstalled. Long story for short, back in days when I first touched cli and tried to play with with cli on file removal. After applied rm to where adobe pdf reader installed (could not really remember why), found out neither the old pdf reader could not be removed nor the newer version could be installed, because of my false operation.

    So, this problem sits for years because of my laziness, until I finally came across your answer for fixing wsl issue and tried this tool that brings pdf reader back to life again. I know this sounds really stupid to people who read this post, but at least I got lesson learned.

  19. neilwang0913 commented on May 28, 2023

    @neilwang0913

    I think you might also need to run in admin for the 1st time.

  20. sai-kumar2413 commented on Aug 2, 2023

    @sai-kumar2413

    I'm starting Ubuntu for Windows and I immediately receive the following message:
    "WSL 2 requires an update to its kernel component. For information please visit https://aka.ms/wsl2kernel."
    sort out above problem by this command in PowerShell
    wsl --update
    after this update everything is clear
    it may help for this problem

  21. drakem58 commented on Aug 28, 2023

    @drakem58

    I am running Windows 11 not 10 and ran into the same display after installing Ubuntu, "WSL 2 requires an update to its kernel component. For information please visit https://aka.ms/wsl2kernel." Went to the website, downloaded the fix, ran it, then reran ubuntu and it works now.

  22. kangarooo commented on Dec 29, 2023

    @kangarooo

    Removed Ubuntu, WSL update, WSL in Add windows features deselected WSL
    Restart
    Installed in Features WSL
    Restart
    Did https://learn.microsoft.com/en-us/windows/wsl/install-manual#step-4---download-the-linux-kernel-update-package
    Installed update
    Restart
    Opened WSL
    Didnt open
    In store opened Ubuntu 22.04.3
    Installed
    WORKS

    It should fix it all automatically instead of manually guessing and removing all

  23. Lakshan-Madushanka commented on Mar 25, 2024

    @Lakshan-Madushanka

    Open the power shell and run the command wsl.exe --install worked for me.

  24. itsmejyv commented on Jul 27, 2024

    @itsmejyv

    This error happens to me also in Windows 11, this Manual Installation will fix it. Just make sure you enabled WSL on windows feature configuration. There's also included command there to enable virtual machine feature if ever you forgot to enable it.

  25. Harsh-1Byte commented on Oct 12, 2024

    @Harsh-1Byte
  26. wesandradealves commented on Mar 26, 2025

    @wesandradealves

    @friday963 Something is broken in your install. Follow this and try again: https://support.microsoft.com/en-us/help/17588/windows-fix-problems-that-block-programs-being-installed-or-removed

    BTW the msi file you need is here https://aka.ms/wsl2kernel

    Nice approach. I've tried a bunch of other solutions but no success at all. I just ran this troubleshooter, selected the subsystem and it uninstalled properly so I could run the wsl command again with success.

  27. microsoft-github-policy-service commented on Apr 2, 2026

    @microsoft-github-policy-service
    Contributor

    This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request.

    Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationworkaround-available

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions