How to update from WSL to WSL 2 in Windows 10
How to update from WSL to WSL 2 in Windows 10
Step 1. Open PowerShell as admin.
Step 2. Copy and paste the below command into PowerShell, and then press Enter to enable the WSL optional feature.
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
Step 3. Copy and paste the below command into PowerShell, and then press Enter to enable the Virtual Machine Platform option .
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
Step 4. Restart the computer to apply the change.
Step 5. Open PowerShell as admin.
Step 6. Copy and paste the following command into PowerShell, and then press Enter to set WSL 2 as the default version used when installing new Linux distributions.
wsl --set-default-version 2
You can see this message after running the above command:
WSL 2 requires an update to its kernel component. For information please visit https://aka.ms/wsl2kernel.
(WSL 2 requires kernel component update. For information please visit link here).
If you want, click on the link here and install MSI from that page on the Microsoft documentation to install the Linux kernel on your machine and use WSL 2. After you have installed kernel, please run the command again: wsl --set-default-version 2 and it should complete successfully without displaying a message.
Updating from WSL 1 to WSL 2 may take several minutes to complete, depending on the size of the targeted distribution. If you are running an old WSL 1 installation from the Windows 10 Anniversary Update or the Creators Update, you may encounter an update error.
Step 7. Now you can install and set WSL distro apps from the Microsoft Store to use WSL 2 by default.
You should read it
- Turn off the Win 10 update, stop Windows 10 from updating automatically
- Windows Update Blocker 1.6 - Download Windows Update Blocker here
- Windows Update crashes, this is what you need to do
- How to hide Windows Update on Windows 10
- 3 ways to update Windows 10 to the latest update 2023
- How to download Windows 10 Anniversary Update update?
- How to change, prolong the delay of updating on Windows 10?
- How to update the Discord app on all operating systems
May be interested
- How to change, prolong the delay of updating on Windows 10?on windows 10 profesional, enterprise and education versions are allowed to postpone updates (update), so users will not have to download the update for a while. you can use local group policy to set a delay time other than the default time.
- Turn off driver update on Windows Update Windows 10on recently released versions of windows 10 build 14328 microsoft has added some new options. users can prevent windows 10 from updating drivers. by default, windows 10 automatically installs drivers from windows update when available.
- How to fix Windows Update error 0xC1900101 - 0x4000Dupdate error 0xc1900101 - 0x4000d sometimes appears when users try to install the latest updates on their computers. it usually happens when installing update 22h2 and force reverting the system to windows 10.
- What to do when Windows Update crashes 0% on Windows 7/8/10?a windows update error crashes is one of the most common problems windows users face. if you are using windows 7/8/10 and during the update process you are notified that the error cannot be updated, or the error is updating, it will be suspended 0%, then you can apply the solution in the article below. here of network administrator to fix the error.
- How to fix some errors when updating Windows 10besides the exciting new features, the windows 10 update also has some problems during and after installing the software. read this article to learn how to fix some of the most common problems of this update.
- Windows Update June 2022 continues to cause many annoying bugsmicrosoft has just updated the official windows health dashboard page to include known bugs that arise after the most recent update.
- Microsoft is redesigning Windows 10 Update, improving the user experienceif you do not know, the update windows 10 may 2019 update will be available in release preview ring of windows insider program starting next week.
- 3 ways to update Windows 11 official versionwindows 11 was officially launched in october 2021, can be upgraded directly from windows 10. this article shows you 3 simple ways to update windows 11.
- Some Windows 10 machines are locked to update after updating KB5003214 and KB5003690windows 10 is having a problem that i don't know whether to call a bug or a feature. specifically, some users reported that they were unable to install the latest windows 10 cumulative update but instead received the 'psfx_e_matching_binary_missing' error message.
- How to uninstall Windows 10 April 2018 Updatewindows 10 april update is released to users but there are still some limitations, or your computer has problems, you can uninstall and return to the previous windows version.