To reinstall the Windows Subsystem for Linux (WSL) on Windows 11, follow these steps:
-
Open the PowerShell as Administrator.
-
Run the following command to enable the optional feature:
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
-
After enabling the feature, restart your computer.
-
Open the Microsoft Store and search for "Linux".
-
Click on the "Linux" app and select the desired Linux distribution you want to install.
-
Click on the "Get" button to download and install the Linux distribution.
-
Once the installation is complete, launch the Linux distribution from the Start menu.
-
Enter your Microsoft Account credentials when prompted to create a user account and password for the Linux distribution.
Now, you have successfully reinstalled the Windows Subsystem for Linux (WSL) on your Windows 11 system.
References
- Microsoft Docs: Install the Linux distribution of your choice on Windows 11
- Microsoft Support: Turn Windows features on or off
- Ask Ubuntu: How to install WSL on Windows 11?