DisclaimerInfo: I tried this on a VM with Win10 Pro (v1709 & 1803) with stock Group Policy (i.e. as-is with a fresh installation).
Note that this answer shows the steps for DebianonlyDebian only. However, everything is the same for Ubuntu, SLES, openSUSE, and Kali - the only difference will be in the name of the EXE (and the URL you use).
- Via the
Windows Features
GUI: e.g. Win + I -->OptionalFeatures.exe
- With PowerShell (as administrator):
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
.
- Choose your distro. Simply use one of these URLs:
* Debian:
https://aka.ms/wsl-debian-gnulinux
* Ubuntu 18.04:https://aka.ms/wsl-ubuntu-1804
* Ubuntu 16.04:https://aka.ms/wsl-ubuntu-1604
* openSUSE:https://aka.ms/wsl-opensuse-42
* SLES:https://aka.ms/wsl-sles-12
* Kali:https://aka.ms/wsl-kali-linux
- Via PowerShell, run
Invoke-WebRequest -Uri https://aka.ms/wsl-debian-gnulinux -OutFile ~/Debian.zip -UseBasicParsing
.- If you do not need the progress-barVia PowerShell, addrun
$ProgressPreferenceInvoke-WebRequest =-Uri 'SilentlyContinue';
in the front of the command. - Note that
https://aka.ms/wsl-debian-gnulinux -OutFile ~/Debian.zip -UseBasicParsing
.- If you do not need the progress-bar, add
$ProgressPreference = 'SilentlyContinue';
in the front of the command. - Note that
~/Debian.zip
can be changed to whatever path and name you want.
- If you do not need the progress-bar, add
- You can be changed to whatever pathalso download it "per manus" - feed the URL into your browser (or download manager) and name you wantcan get it this way, too.
- If you do not need the progress-barVia PowerShell, addrun
- You can also download it "per manus" - feed the URL into your browser (or download manager) and you can get it this way, too.
- Note that you can use any path - be it
~\IHateUbuntu\SLES_WSL
, be itDC:\Ubuntu
, etc.p.p.. It must, however, be on your system's drive (usuallyC:\
) Thanks, @Matt Wenham! - Via PowerShell:
Expand-Archive <ARCHIVE> <ITS_NEW_PATH>
- Via the File Explorer's GUI
- Or via any zipping tool, such as 7-Zip.
- Run
Debian.exe
, which is inside the unzipped folder.
- Set your username and password.
- It is recommended to update all software at the first start.
- If error
0x80070005
shows up, you need to run the EXE as administrator. Thanks, @March Ho!
- It is recommended to update all software at the first start.
- In Debian & Ubuntu, this is done by running
sudo apt-get update && sudo apt-get dist-upgrade
.
- (Optional) Put WSLyour EXE into the Start Menu.