

Then, execute the following command to install the required Linux distro (make sure to replace the with the distro name: wsl -install -d įor example, to install Debian, you may use the command: wsl -install -d DebianĬheck Available Linux Distros and Install a Non-Default Linux Distros.Usually, the following may be shown as available: Ubuntu Now, check the list of available Linux distros and find which one fulfills your requirements.

Open the Windows PowerShell (Admin) and execute the following to check the list of available Linux distros for WSL: wsl -list -online.What if a user wants to install a different distribution than the default Ubuntu? So, don’t worry, here is a simple process: Install a non-Default Linux Distro Through the PowerShell Command You may use the Ubuntu app in the Windows Start menu or use the Windows Terminal app to explore different Ubuntu features. Upon reboot, you may set up the Ubuntu distribution as per your requirements (discussed later) and you are ready to explore the wonders of Linux.Wait till the installation process of all the components is complete and then reboot your PC.Now execute the following: wsl -install.Right-click Windows and select PowerShell (Admin).So, follow the steps below to set up WSL with a single command (this command is supported only on Windor above): This PowerShell command will enable the required WSL component, download and install the latest Linux kernel, set WSL2 as the default, and install Ubuntu. Microsoft has made it easier for its users to use a single PowerShell command to install the WSL feature along with the default Ubuntu installation (that can be changed). If your PC meets the system requirements of WSL 2, you may follow the guidelines discussed below: Install the WSL Through PowerShell If your PC does not meet these requirements, then you may have to use WSL 1 version only and you may follow the guidelines below but skip the parts related to WSL 2 (like setting the default version to WSL 2). In the case of an ARM machine, Windows 10 version 2004 or higher.
