3. Manual install for WSL
Follow the steps below only if you experience issues installing WSL from the Microsoft Store.
Download Ubuntu ΒΆ
Choose the version accordingly. We recommend using LTS 18.04 but other options are available.
RECOMMENDED: Ubuntu 18.04
Others: Ubuntu 20.04
After you download, you should end up with a file in the format <distro>.appx. Move it to your desktop. If the file has a very long name, you can rename it (e.g. Ubuntu1804.appx) to make it easier to manipulate. Open Powershell from desktop with elevated rights, and extract the content of <distro>.appx:
Rename-Item .\Ubuntu1804.appx .\Ubuntu1804.zip
Expand-Archive .\Ubuntu1804.zip .\Ubuntu
You now have the installation file for Ubuntu1804 under the Ubuntu folder on your Desktop. Launch Ubuntu.exe.
After that, add it to your environment variable as below. Replace C:\Users\Administrator\Ubuntu accordingly.
$userenv = [System.Environment]::GetEnvironmentVariable("Path", "User")
[System.Environment]::SetEnvironmentVariable("PATH", $userenv + ";C:\Users\Administrator\Ubuntu", "User")