Guide to Install Windows Subsystem for Linux (WSL) in Win 10

Windows Subsystem for Linux (WSL) is a feature on Windows 10. It creates a lightweight environment which allows you to install and run its supported versions of Linux, and you don’t have to set up a virtual machine or employ another computer.

Without further ado, let’s see how to install WSL and make it usable in Windows 10.

Move 1: Enable Windows Subsystem for Linux Feature

Use Windows PowerShell

Step 3: Input the following command and press Enter key to enable this optional feature:

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

Step 4: Then, input Y and press Enter to restart your computer to complete the operation.

Use Control Panel

Step 2: In the left pane, click Turn Windows features on or off.

Step 3: In the pop-up window, scroll down to locate Windows Subsystem for Linux. Check this option and click OK button.

Step 4: Then, your Windows will start searching for required files. After the changes are applied, you will receive the following window. Just click Restart now button.

After that, the environment will be configured and you can download and install your Linux distribution of choice.

Move 2: Download and Install Linux Distribution

Use Microsoft Store

Here are some available Linux distributions you can choose:

Then, just click Get (or Install in some cases) to download and install it.

Use Windows PowerShell

Step 1: Run Windows PowerShell as Administrator and

Step 2: Execute the following command line to download Ubuntu 16.04:

Invoke-WebRequest -Uri -OutFile Ubuntu.appx -UseBasicParsing

Step 3: Input dir and press Enter to check the name of the installer.

Step 4: Input the command Add-AppxPackage .\APP-NAME.appx and press Enter to install your Linux.

Move 3: Complete Distro Initialization

Just launch your newly installed distro. When you run a new distro for the first time, you will get a window requiring you to wait for minutes to complete the installation.

After that, you need to set up a new Linux user account. Just input a username and a password and press Enter after each.


Installation failed with error 0x80070003

You will receive the error if you install Linux distros on non-system drive, because the Windows Subsystem for Linux only runs on your system drive. Please make sure you have stored it on the right place.

You can go to Windows Settings > System > Storage > Change where new content is saved to change the default path for downloading.

WslRegisterDistribution failed with error 0x8007019e

This error means that you haven’t enable the Windows Subsystem for Linux optional feature. You can enable it in Control Panel or Windows PowerShell following the steps mentioned above.

Originally published at on December 13, 2019.