My stated problem is that available appx-packages require Windows
1709, which I cannot have. This problem is neither addressed nor
answered in the referenced question.
The current WSL instances that are distributed on the Windows Store only support 1709 and greater.
I specifically ask for a source for appx-packages that will run on Windows 10 1703. That information is not provided in the answers to the referenced question, b/c the user does not need them, b/c they are on Windows 10 1709.
This is not possible.
I specifically ask if the most recent versions, i.e. the ones mentioned in the referenced question, can be hacked to not require version 1709 anymore. That information is not provided in the answers to the referenced question, b/c the user is on Windows 10 1709.
This is not possible
As there are blog posts and such where people write about running Linux on Windows 10 1703, there must be appx-packages out there, that will run on Windows 1703. Can anyone provide me with a source for such (outdated) packages?
All you have to do is run lxrun /install
in an elevated command prompt. The correct Ubuntu WSL instance will be automatically downloaded and installed.
However, the currently available Linux Distros for WSL all require the
most recent Windows version, 1709, which I do not have and cannot get,
due to company policy.
The only WSL instance that is compatible with your system is Ubuntu 16.04 by the way. You can perform a forced upgrade to 18.04 but I cannot suggest performing an upgrade using that method. If you need an offline method to install Ubuntu 16.04 WSL on Windows 10 v1703 you can use lxRunOffline v1.1.0.
The following instructions are for users running Windows 10
Anniversary Update or Windows 10 Creators Update:
- Enable Developer Mode
- Open PowerShell as Administrator and run: Enable-WindowsOptionalFeature -Online -FeatureName
Microsoft-Windows-Subsystem-Linux
- Reboot
- Open a command prompt. Type bash and hit enter
The first time you run Bash on Ubuntu on Windows, you'll be prompted
to accept Canonical's license. Once accepted, WSL will download and
install the Ubuntu instance onto your machine, and a "Bash on Ubuntu
on Windows" shortcut will be added to your start menu.
Source: Windows 10 Anniversary Update and Creators Update WSL Install & Uninstall Guide
If I get my manually installed Linux instance into a bad state, what is the correct way to reset it and bring it back to a fresh install?
If you are running Windows 10 Version 1903:
wsl --unregister <DistributionName>
If you are running Windows 10 Version 1709, 1803, or 1809:
wslconfig /unregister <DistributionName>
Manage and configure Windows Subsystem for Linux
Best Answer
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...According to Microsoft's "Windows Server Installation Guide":
Activate
Windows Subsystem for Linux
.Windows Features
GUI: e.g. Win + I -->OptionalFeatures.exe
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
.Download the Linux-package.
https://aka.ms/wsl-debian-gnulinux
https://aka.ms/wsl-ubuntu-1804
https://aka.ms/wsl-ubuntu-1604
https://aka.ms/wsl-opensuse-42
https://aka.ms/wsl-sles-12
https://aka.ms/wsl-kali-linux
Invoke-WebRequest -Uri https://aka.ms/wsl-debian-gnulinux -OutFile ~/Debian.zip -UseBasicParsing
.$ProgressPreference = 'SilentlyContinue';
in the front of the command.~/Debian.zip
can be changed to whatever path and name you want.~\IHateUbuntu\SLES_WSL
, be itC:\Ubuntu
, etc.p.p.. It must, however, be on your system's drive (usuallyC:\
) Thanks, @Matt Wenham!Expand-Archive <ARCHIVE> <ITS_NEW_PATH>
Debian.exe
, which is inside the unzipped folder.0x80070005
shows up, you need to run the EXE as administrator. Thanks, @March Ho!sudo apt update && sudo apt upgrade
.Debian.exe
intoC:\ProgramData\Microsoft\Windows\Start Menu\Programs
.You are good to go now. Run
Debian.exe
whenever you want WSL to run.