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












33















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?



Note that since version 1709 (Fall Creator's Upgrade), only enabling Developer Mode is no longer sufficient.










share|improve this question





























    33















    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?



    Note that since version 1709 (Fall Creator's Upgrade), only enabling Developer Mode is no longer sufficient.










    share|improve this question



























      33












      33








      33


      30






      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?



      Note that since version 1709 (Fall Creator's Upgrade), only enabling Developer Mode is no longer sufficient.










      share|improve this question
















      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?



      Note that since version 1709 (Fall Creator's Upgrade), only enabling Developer Mode is no longer sufficient.







      windows-subsystem-for-linux windows-10-v1709






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 26 '17 at 0:50









      flolilolilo

      1,4681520




      1,4681520










      asked Nov 25 '17 at 18:48









      Gabriel FairGabriel Fair

      80341841




      80341841






















          4 Answers
          4






          active

          oldest

          votes


















          36














          Disclaimer: I tried this on a VM with Win10 Pro (v1709) 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...





          According to Microsoft's "Windows Server Installation Guide":




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




            • Via the Windows Features GUI

            • With PowerShell (as administrator): Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux.




          2. Download the Linux-package.




            • 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-bar, add $ProgressPreference = 'SilentlyContinue'; in the front of the command.

              • Note that ~/Debian.zip can be changed to whatever path and name you want.



            • You can also download it "per manus" - feed the URL into your browser (or download manager) and you can get it this way, too.




          3. Unzip the downloaded archive and place it into its destination path.


            • Note that you can use any path - be it ~IHateUbuntuSLES_WSL, be it D:Ubuntu, etc.p.p..

            • Via PowerShell: Expand-Archive <ARCHIVE> <ITS_NEW_PATH>

            • Via the File Explorer's GUI

            • Or via any zipping tool, such as 7-Zip.




          4. Run Debian.exe which is inside the unzipped folder.


            • For the other distros, you just have to look for the correct EXE.

            • This will now "install" your distro.



          5. Set your username and password.

          6. 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.




          7. (Optional) Put WSL into the Start Menu.


            • Simply put a hard link of Debian.exe into C:ProgramDataMicrosoftWindowsStart MenuPrograms.




          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.






          share|improve this answer





















          • 1





            If you're getting the error 0x80070005, you need to run the exe file as administrator.

            – March Ho
            Nov 12 '18 at 20:25











          • Do you happen to know if it is possible to install these for all users at once?

            – Andrew Savinykh
            Dec 6 '18 at 8:21













          • @AndrewSavinykh Since it is installed into whatever Path you like (e.g. C:), providing access (and links) for all users should not be a problem. However, I do not know how to create links for multiple users. Something along New-Item -ItemType SymbolicLink -Path "<USER_DIR>" -Name "<DISTRO>" -Value "<DISTRO_EXE_PATH>" should work.

            – flolilolilo
            Dec 6 '18 at 10:31





















          12














          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):




            • Ubuntu:: https://aka.ms/wsl-ubuntu-1604 redirects to https://wsldownload.azureedge.net/Ubuntu.1604.2017.711.0_v1.appx (old link).

            • OpenSUSE:: https://aka.ms/wsl-opensuse-42 redirects to https://wsldownload.azureedge.net/openSUSE-42_v1.appx (old link).

            • SLES:: https://aka.ms/wsl-sles-12 redirects to https://wsldownload.azureedge.net/SLES-12_v1.appx (old link).



          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.










          share|improve this answer

































            3














            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.




            • You can install Ubuntu 18 or many other distributions using the second option.




            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 <name> -d <folder> -f <distribution file>

            C:wsl> lxrunoffline install -n copy -d c:wslcopy -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.






            share|improve this answer

































              0














              None of the above solutions worked for me. My problem was subtle given I know nothing about windows and have not used it really since 1999.



              The above answers are very well written but it is interesting that windows has not moved on in 20 years so that a single script fixes these sort of problems. Kind of depressing....



              If you obtain a laptop machine preinstalled with windows 10 pro there is no requirement to install a standard user account. Installing the windows subsystem Linux (WSL) as Administrator is fine but installing Debian, Ubuntu or opensuse from the app store will result in error 0x80070005 for all operating systems failing at the new username creation step. Using many of the answers.microsoft.com solutions that changes the user packages directories file permissions are totally inappropriate fixes also.



              Solution:



              Creating a normal user account in addition to having an Administrator account allows Debian to be immediately installed from the windows app store once WSL is installed from a power shell run as administrator.






              share|improve this answer
























              • To my understanding, the Windows kernel requires certain os calls to be made under an authenticated user. This is done for security and has always been a core windows paradigm. The WSL abstraction can't run solely under the SYSTEM user.

                – Gabriel Fair
                Jan 10 at 17:08












              protected by Ramhound Oct 24 '18 at 6:22



              Thank you for your interest in this question.
              Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).



              Would you like to answer one of these unanswered questions instead?














              4 Answers
              4






              active

              oldest

              votes








              4 Answers
              4






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              36














              Disclaimer: I tried this on a VM with Win10 Pro (v1709) 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...





              According to Microsoft's "Windows Server Installation Guide":




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




                • Via the Windows Features GUI

                • With PowerShell (as administrator): Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux.




              2. Download the Linux-package.




                • 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-bar, add $ProgressPreference = 'SilentlyContinue'; in the front of the command.

                  • Note that ~/Debian.zip can be changed to whatever path and name you want.



                • You can also download it "per manus" - feed the URL into your browser (or download manager) and you can get it this way, too.




              3. Unzip the downloaded archive and place it into its destination path.


                • Note that you can use any path - be it ~IHateUbuntuSLES_WSL, be it D:Ubuntu, etc.p.p..

                • Via PowerShell: Expand-Archive <ARCHIVE> <ITS_NEW_PATH>

                • Via the File Explorer's GUI

                • Or via any zipping tool, such as 7-Zip.




              4. Run Debian.exe which is inside the unzipped folder.


                • For the other distros, you just have to look for the correct EXE.

                • This will now "install" your distro.



              5. Set your username and password.

              6. 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.




              7. (Optional) Put WSL into the Start Menu.


                • Simply put a hard link of Debian.exe into C:ProgramDataMicrosoftWindowsStart MenuPrograms.




              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.






              share|improve this answer





















              • 1





                If you're getting the error 0x80070005, you need to run the exe file as administrator.

                – March Ho
                Nov 12 '18 at 20:25











              • Do you happen to know if it is possible to install these for all users at once?

                – Andrew Savinykh
                Dec 6 '18 at 8:21













              • @AndrewSavinykh Since it is installed into whatever Path you like (e.g. C:), providing access (and links) for all users should not be a problem. However, I do not know how to create links for multiple users. Something along New-Item -ItemType SymbolicLink -Path "<USER_DIR>" -Name "<DISTRO>" -Value "<DISTRO_EXE_PATH>" should work.

                – flolilolilo
                Dec 6 '18 at 10:31


















              36














              Disclaimer: I tried this on a VM with Win10 Pro (v1709) 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...





              According to Microsoft's "Windows Server Installation Guide":




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




                • Via the Windows Features GUI

                • With PowerShell (as administrator): Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux.




              2. Download the Linux-package.




                • 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-bar, add $ProgressPreference = 'SilentlyContinue'; in the front of the command.

                  • Note that ~/Debian.zip can be changed to whatever path and name you want.



                • You can also download it "per manus" - feed the URL into your browser (or download manager) and you can get it this way, too.




              3. Unzip the downloaded archive and place it into its destination path.


                • Note that you can use any path - be it ~IHateUbuntuSLES_WSL, be it D:Ubuntu, etc.p.p..

                • Via PowerShell: Expand-Archive <ARCHIVE> <ITS_NEW_PATH>

                • Via the File Explorer's GUI

                • Or via any zipping tool, such as 7-Zip.




              4. Run Debian.exe which is inside the unzipped folder.


                • For the other distros, you just have to look for the correct EXE.

                • This will now "install" your distro.



              5. Set your username and password.

              6. 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.




              7. (Optional) Put WSL into the Start Menu.


                • Simply put a hard link of Debian.exe into C:ProgramDataMicrosoftWindowsStart MenuPrograms.




              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.






              share|improve this answer





















              • 1





                If you're getting the error 0x80070005, you need to run the exe file as administrator.

                – March Ho
                Nov 12 '18 at 20:25











              • Do you happen to know if it is possible to install these for all users at once?

                – Andrew Savinykh
                Dec 6 '18 at 8:21













              • @AndrewSavinykh Since it is installed into whatever Path you like (e.g. C:), providing access (and links) for all users should not be a problem. However, I do not know how to create links for multiple users. Something along New-Item -ItemType SymbolicLink -Path "<USER_DIR>" -Name "<DISTRO>" -Value "<DISTRO_EXE_PATH>" should work.

                – flolilolilo
                Dec 6 '18 at 10:31
















              36












              36








              36







              Disclaimer: I tried this on a VM with Win10 Pro (v1709) 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...





              According to Microsoft's "Windows Server Installation Guide":




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




                • Via the Windows Features GUI

                • With PowerShell (as administrator): Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux.




              2. Download the Linux-package.




                • 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-bar, add $ProgressPreference = 'SilentlyContinue'; in the front of the command.

                  • Note that ~/Debian.zip can be changed to whatever path and name you want.



                • You can also download it "per manus" - feed the URL into your browser (or download manager) and you can get it this way, too.




              3. Unzip the downloaded archive and place it into its destination path.


                • Note that you can use any path - be it ~IHateUbuntuSLES_WSL, be it D:Ubuntu, etc.p.p..

                • Via PowerShell: Expand-Archive <ARCHIVE> <ITS_NEW_PATH>

                • Via the File Explorer's GUI

                • Or via any zipping tool, such as 7-Zip.




              4. Run Debian.exe which is inside the unzipped folder.


                • For the other distros, you just have to look for the correct EXE.

                • This will now "install" your distro.



              5. Set your username and password.

              6. 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.




              7. (Optional) Put WSL into the Start Menu.


                • Simply put a hard link of Debian.exe into C:ProgramDataMicrosoftWindowsStart MenuPrograms.




              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.






              share|improve this answer















              Disclaimer: I tried this on a VM with Win10 Pro (v1709) 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...





              According to Microsoft's "Windows Server Installation Guide":




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




                • Via the Windows Features GUI

                • With PowerShell (as administrator): Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux.




              2. Download the Linux-package.




                • 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-bar, add $ProgressPreference = 'SilentlyContinue'; in the front of the command.

                  • Note that ~/Debian.zip can be changed to whatever path and name you want.



                • You can also download it "per manus" - feed the URL into your browser (or download manager) and you can get it this way, too.




              3. Unzip the downloaded archive and place it into its destination path.


                • Note that you can use any path - be it ~IHateUbuntuSLES_WSL, be it D:Ubuntu, etc.p.p..

                • Via PowerShell: Expand-Archive <ARCHIVE> <ITS_NEW_PATH>

                • Via the File Explorer's GUI

                • Or via any zipping tool, such as 7-Zip.




              4. Run Debian.exe which is inside the unzipped folder.


                • For the other distros, you just have to look for the correct EXE.

                • This will now "install" your distro.



              5. Set your username and password.

              6. 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.




              7. (Optional) Put WSL into the Start Menu.


                • Simply put a hard link of Debian.exe into C:ProgramDataMicrosoftWindowsStart MenuPrograms.




              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.







              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited Aug 28 '18 at 21:34

























              answered Nov 28 '17 at 17:26









              floliloliloflolilolilo

              1,4681520




              1,4681520








              • 1





                If you're getting the error 0x80070005, you need to run the exe file as administrator.

                – March Ho
                Nov 12 '18 at 20:25











              • Do you happen to know if it is possible to install these for all users at once?

                – Andrew Savinykh
                Dec 6 '18 at 8:21













              • @AndrewSavinykh Since it is installed into whatever Path you like (e.g. C:), providing access (and links) for all users should not be a problem. However, I do not know how to create links for multiple users. Something along New-Item -ItemType SymbolicLink -Path "<USER_DIR>" -Name "<DISTRO>" -Value "<DISTRO_EXE_PATH>" should work.

                – flolilolilo
                Dec 6 '18 at 10:31
















              • 1





                If you're getting the error 0x80070005, you need to run the exe file as administrator.

                – March Ho
                Nov 12 '18 at 20:25











              • Do you happen to know if it is possible to install these for all users at once?

                – Andrew Savinykh
                Dec 6 '18 at 8:21













              • @AndrewSavinykh Since it is installed into whatever Path you like (e.g. C:), providing access (and links) for all users should not be a problem. However, I do not know how to create links for multiple users. Something along New-Item -ItemType SymbolicLink -Path "<USER_DIR>" -Name "<DISTRO>" -Value "<DISTRO_EXE_PATH>" should work.

                – flolilolilo
                Dec 6 '18 at 10:31










              1




              1





              If you're getting the error 0x80070005, you need to run the exe file as administrator.

              – March Ho
              Nov 12 '18 at 20:25





              If you're getting the error 0x80070005, you need to run the exe file as administrator.

              – March Ho
              Nov 12 '18 at 20:25













              Do you happen to know if it is possible to install these for all users at once?

              – Andrew Savinykh
              Dec 6 '18 at 8:21







              Do you happen to know if it is possible to install these for all users at once?

              – Andrew Savinykh
              Dec 6 '18 at 8:21















              @AndrewSavinykh Since it is installed into whatever Path you like (e.g. C:), providing access (and links) for all users should not be a problem. However, I do not know how to create links for multiple users. Something along New-Item -ItemType SymbolicLink -Path "<USER_DIR>" -Name "<DISTRO>" -Value "<DISTRO_EXE_PATH>" should work.

              – flolilolilo
              Dec 6 '18 at 10:31







              @AndrewSavinykh Since it is installed into whatever Path you like (e.g. C:), providing access (and links) for all users should not be a problem. However, I do not know how to create links for multiple users. Something along New-Item -ItemType SymbolicLink -Path "<USER_DIR>" -Name "<DISTRO>" -Value "<DISTRO_EXE_PATH>" should work.

              – flolilolilo
              Dec 6 '18 at 10:31















              12














              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):




                • Ubuntu:: https://aka.ms/wsl-ubuntu-1604 redirects to https://wsldownload.azureedge.net/Ubuntu.1604.2017.711.0_v1.appx (old link).

                • OpenSUSE:: https://aka.ms/wsl-opensuse-42 redirects to https://wsldownload.azureedge.net/openSUSE-42_v1.appx (old link).

                • SLES:: https://aka.ms/wsl-sles-12 redirects to https://wsldownload.azureedge.net/SLES-12_v1.appx (old link).



              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.










              share|improve this answer






























                12














                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):




                  • Ubuntu:: https://aka.ms/wsl-ubuntu-1604 redirects to https://wsldownload.azureedge.net/Ubuntu.1604.2017.711.0_v1.appx (old link).

                  • OpenSUSE:: https://aka.ms/wsl-opensuse-42 redirects to https://wsldownload.azureedge.net/openSUSE-42_v1.appx (old link).

                  • SLES:: https://aka.ms/wsl-sles-12 redirects to https://wsldownload.azureedge.net/SLES-12_v1.appx (old link).



                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.










                share|improve this answer




























                  12












                  12








                  12







                  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):




                    • Ubuntu:: https://aka.ms/wsl-ubuntu-1604 redirects to https://wsldownload.azureedge.net/Ubuntu.1604.2017.711.0_v1.appx (old link).

                    • OpenSUSE:: https://aka.ms/wsl-opensuse-42 redirects to https://wsldownload.azureedge.net/openSUSE-42_v1.appx (old link).

                    • SLES:: https://aka.ms/wsl-sles-12 redirects to https://wsldownload.azureedge.net/SLES-12_v1.appx (old link).



                  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.










                  share|improve this answer















                  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):




                    • Ubuntu:: https://aka.ms/wsl-ubuntu-1604 redirects to https://wsldownload.azureedge.net/Ubuntu.1604.2017.711.0_v1.appx (old link).

                    • OpenSUSE:: https://aka.ms/wsl-opensuse-42 redirects to https://wsldownload.azureedge.net/openSUSE-42_v1.appx (old link).

                    • SLES:: https://aka.ms/wsl-sles-12 redirects to https://wsldownload.azureedge.net/SLES-12_v1.appx (old link).



                  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.











                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Jul 3 '18 at 17:52

























                  answered Dec 2 '17 at 16:18









                  BiswapriyoBiswapriyo

                  2,81031241




                  2,81031241























                      3














                      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.




                      • You can install Ubuntu 18 or many other distributions using the second option.




                      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 <name> -d <folder> -f <distribution file>

                      C:wsl> lxrunoffline install -n copy -d c:wslcopy -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.






                      share|improve this answer






























                        3














                        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.




                        • You can install Ubuntu 18 or many other distributions using the second option.




                        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 <name> -d <folder> -f <distribution file>

                        C:wsl> lxrunoffline install -n copy -d c:wslcopy -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.






                        share|improve this answer




























                          3












                          3








                          3







                          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.




                          • You can install Ubuntu 18 or many other distributions using the second option.




                          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 <name> -d <folder> -f <distribution file>

                          C:wsl> lxrunoffline install -n copy -d c:wslcopy -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.






                          share|improve this answer















                          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.




                          • You can install Ubuntu 18 or many other distributions using the second option.




                          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 <name> -d <folder> -f <distribution file>

                          C:wsl> lxrunoffline install -n copy -d c:wslcopy -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.







                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          edited Jul 29 '18 at 17:24

























                          answered Jul 29 '18 at 4:28









                          JaimeJaime

                          48729




                          48729























                              0














                              None of the above solutions worked for me. My problem was subtle given I know nothing about windows and have not used it really since 1999.



                              The above answers are very well written but it is interesting that windows has not moved on in 20 years so that a single script fixes these sort of problems. Kind of depressing....



                              If you obtain a laptop machine preinstalled with windows 10 pro there is no requirement to install a standard user account. Installing the windows subsystem Linux (WSL) as Administrator is fine but installing Debian, Ubuntu or opensuse from the app store will result in error 0x80070005 for all operating systems failing at the new username creation step. Using many of the answers.microsoft.com solutions that changes the user packages directories file permissions are totally inappropriate fixes also.



                              Solution:



                              Creating a normal user account in addition to having an Administrator account allows Debian to be immediately installed from the windows app store once WSL is installed from a power shell run as administrator.






                              share|improve this answer
























                              • To my understanding, the Windows kernel requires certain os calls to be made under an authenticated user. This is done for security and has always been a core windows paradigm. The WSL abstraction can't run solely under the SYSTEM user.

                                – Gabriel Fair
                                Jan 10 at 17:08


















                              0














                              None of the above solutions worked for me. My problem was subtle given I know nothing about windows and have not used it really since 1999.



                              The above answers are very well written but it is interesting that windows has not moved on in 20 years so that a single script fixes these sort of problems. Kind of depressing....



                              If you obtain a laptop machine preinstalled with windows 10 pro there is no requirement to install a standard user account. Installing the windows subsystem Linux (WSL) as Administrator is fine but installing Debian, Ubuntu or opensuse from the app store will result in error 0x80070005 for all operating systems failing at the new username creation step. Using many of the answers.microsoft.com solutions that changes the user packages directories file permissions are totally inappropriate fixes also.



                              Solution:



                              Creating a normal user account in addition to having an Administrator account allows Debian to be immediately installed from the windows app store once WSL is installed from a power shell run as administrator.






                              share|improve this answer
























                              • To my understanding, the Windows kernel requires certain os calls to be made under an authenticated user. This is done for security and has always been a core windows paradigm. The WSL abstraction can't run solely under the SYSTEM user.

                                – Gabriel Fair
                                Jan 10 at 17:08
















                              0












                              0








                              0







                              None of the above solutions worked for me. My problem was subtle given I know nothing about windows and have not used it really since 1999.



                              The above answers are very well written but it is interesting that windows has not moved on in 20 years so that a single script fixes these sort of problems. Kind of depressing....



                              If you obtain a laptop machine preinstalled with windows 10 pro there is no requirement to install a standard user account. Installing the windows subsystem Linux (WSL) as Administrator is fine but installing Debian, Ubuntu or opensuse from the app store will result in error 0x80070005 for all operating systems failing at the new username creation step. Using many of the answers.microsoft.com solutions that changes the user packages directories file permissions are totally inappropriate fixes also.



                              Solution:



                              Creating a normal user account in addition to having an Administrator account allows Debian to be immediately installed from the windows app store once WSL is installed from a power shell run as administrator.






                              share|improve this answer













                              None of the above solutions worked for me. My problem was subtle given I know nothing about windows and have not used it really since 1999.



                              The above answers are very well written but it is interesting that windows has not moved on in 20 years so that a single script fixes these sort of problems. Kind of depressing....



                              If you obtain a laptop machine preinstalled with windows 10 pro there is no requirement to install a standard user account. Installing the windows subsystem Linux (WSL) as Administrator is fine but installing Debian, Ubuntu or opensuse from the app store will result in error 0x80070005 for all operating systems failing at the new username creation step. Using many of the answers.microsoft.com solutions that changes the user packages directories file permissions are totally inappropriate fixes also.



                              Solution:



                              Creating a normal user account in addition to having an Administrator account allows Debian to be immediately installed from the windows app store once WSL is installed from a power shell run as administrator.







                              share|improve this answer












                              share|improve this answer



                              share|improve this answer










                              answered Jan 10 at 9:35









                              Eamonn KennyEamonn Kenny

                              1212




                              1212













                              • To my understanding, the Windows kernel requires certain os calls to be made under an authenticated user. This is done for security and has always been a core windows paradigm. The WSL abstraction can't run solely under the SYSTEM user.

                                – Gabriel Fair
                                Jan 10 at 17:08





















                              • To my understanding, the Windows kernel requires certain os calls to be made under an authenticated user. This is done for security and has always been a core windows paradigm. The WSL abstraction can't run solely under the SYSTEM user.

                                – Gabriel Fair
                                Jan 10 at 17:08



















                              To my understanding, the Windows kernel requires certain os calls to be made under an authenticated user. This is done for security and has always been a core windows paradigm. The WSL abstraction can't run solely under the SYSTEM user.

                              – Gabriel Fair
                              Jan 10 at 17:08







                              To my understanding, the Windows kernel requires certain os calls to be made under an authenticated user. This is done for security and has always been a core windows paradigm. The WSL abstraction can't run solely under the SYSTEM user.

                              – Gabriel Fair
                              Jan 10 at 17:08







                              protected by Ramhound Oct 24 '18 at 6:22



                              Thank you for your interest in this question.
                              Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).



                              Would you like to answer one of these unanswered questions instead?



                              Popular posts from this blog

                              How to reconfigure Docker Trusted Registry 2.x.x to use CEPH FS mount instead of NFS and other traditional...

                              is 'sed' thread safe

                              How to make a Squid Proxy server?