Is there a way of installing Ubuntu (Windows Subsystem for Linux) on Win10 (v1709) without using the Store?

The Microsoft Store app is disabled by Group Policy by my university. I have administrator rights on my computer and I was wondering if there was a way of installing Windows Subsystem for Linux (WSL) directly? Or maybe via Chocolatey or some other command line method? I would like to download and install the Ubuntu on windows without using the Microsoft store. Note that since version 1709 (Fall Creator's Upgrade), only enabling Developer Mode is no longer sufficient.

Gabriel Fair asked Nov 25, 2017 at 18:48 Gabriel Fair Gabriel Fair 3,893 14 14 gold badges 37 37 silver badges 68 68 bronze badges Commented Oct 14, 2020 at 8:42

5 Answers 5

Info: I tried this on a VM with Win10 Pro (v1709 & 1803) with stock Group Policy (i.e. as-is with a fresh installation).

That is: turning the Store off in gpedit.msc did not make a difference.

Note that this answer shows the steps for Debian 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).

  1. Activate Windows Subsystem for Linux .
  2. Download the Linux-package.
  3. Unzip the downloaded archive and place it into its destination path.
  4. Run Debian.exe , which is inside the unzipped folder.
  5. Set your username and password.
  6. It is recommended to update all software at the first start.
  7. (Optional)Put your EXE into the Start Menu.
  8. (Optional)Repeat for as many distributions as you like to have.

You are good to go now. Run Debian.exe whenever you want WSL to run.

answered Nov 28, 2017 at 17:26 2,751 1 1 gold badge 19 19 silver badges 28 28 bronze badges If you're getting the error 0x80070005 , you need to run the exe file as administrator. Commented Nov 12, 2018 at 20:25

Top instructions. Thanks. FYI: If you are like me, and unzipped the distro in a silly location the first time. You will find wslconfig /list and wslconfig /unregister are your friends.

Commented Feb 7, 2019 at 5:11

I believe that the distribution should be extracted onto your system drive, as mentioned here: docs.microsoft.com/en-us/windows/wsl/…

Commented Apr 23, 2019 at 10:19

Note: the 0x80070005 errors pops for a lot of reasons. If you want to look for workarounds, look here: github.com/microsoft/WSL/issues/3020

Commented Oct 29, 2019 at 17:50

In case anyone else comes across this while trying to install Debian, note that the Store version of Debian has been updated to Debian 10, but the aka.ms link is still Debian 9. Opened an issue for it here: github.com/MicrosoftDocs/WSL/issues/563

Commented Mar 10, 2020 at 0:56

This is a short procedure, applies for Windows 10 Fall Creators update and above.

  1. Enable "Windows Subsystem For Linux" feature from OptionalFeatures.exe and restart PC. From Windows Server Installation Guide.
  2. Download any one of the following file (with any browser or any download manager):
  3. Open Appx packages with 7ZIP. Extract only the executable file (e.g. Ubuntu.exe) and install.tar.gz in any drive or any folder. Double click on that executable file and it will be installed.

Notes:: You can now install any GNU/Linux distribution using compressed RootFS tarballs (only .tar.gz) provided in distribution sites or from docker images.

answered Dec 2, 2017 at 16:18 Biswapriyo Biswapriyo 11.4k 10 10 gold badges 48 48 silver badges 80 80 bronze badges

You can (1) download the installers from the Windows Store or (2) download a distribution file and install it using tools such as lxRunOffline or WSL Distrolauncher.

Downloading the installer from the Windows Store

You can download the installers from the Windows Store using Powershell. For instance, you can download the Ubuntu 16 version using the following command

PS> Invoke-WebRequest -Uri https://aka.ms/wsl-ubuntu-1604 -OutFile Ubuntu.appx -UseBasicParsing 

In the above command, the output file is Ubuntu.appx . It must be named in that way. You can run that application to install the Ubuntu.

PS> Ubuntu.appx 

Using LxRunOffline

First, you must download some distribution file. There are many distribution files available in the lxRunOffline wiki.

For instance, to install the same Ubuntu 16 from the Microsoft Windows Store, you can download the file at

https://lxrunoffline.apphb.com/download/UbuntuFromMS/16 

Then, you can install the linux distribution using lxRunOffline

# lxrunoffline install -n -d -f C:\wsl> lxrunoffline install -n copy -d c:\wsl\copy -f 16.04.2-server-cloudimg-amd64-root.tar.gz 

To run the distribution, you may use the same lxRunOffline

C:\wsl> lxrunoffline run -n copy -w 

Using a DistroLauncher

You can use some DistroLauncher. There are many versions based on the Microsoft example to create custom linux distributions for WSL. For instance, you can use the Yuk7 version.

You must download a distribution file and the launcher.exe . To use the same distribution file mentioned above, you must rename the distribution file to rootfs.tar.gz and the launcher to the distribution name you want. Later you must run the launcher as an Administrator (I got errors running it as a normal user)

PS> ren launcher.exe mydistro.exe PS> ren .\16.04.2-server-cloudimg-amd64-root.tar.gz rootfs.tar.gz PS> .\mydistro 

The first time you run the launcher, it installs and run the distribution. The next time, it runs the linux distribution.

After installing, you can manage the distributions using the wslconfig or the lxrunoffline commands.

NOTE: In addition to the distribution files mentioned above, you can create a new file based on other linux distributions. You may try the instructions included in the WSLInstall project. You may need additional steps after the installation to start the new linux correctly.