How to Install WSL on Windows Server 2019

Table of Contents

The Windows Subsystem for Linux (WSL) is available for installation on Windows Server 2019 (version 1709) and later. To install WSL on Windows Server 2019 (version 1709+), you can follow the manual install steps below:

Enable the Windows Subsystem for Linux

To run Linux distributions on Windows, you need to enable the “Windows Subsystem for Linux” optional feature and restart your computer. Open PowerShell as Administrator and run:

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

Alternatively, you can enable Windows Subsystem for Linux using Server Manager.

How to Install WSL on Windows Server 2019

Download a Linux distribution

In Windows Server 2019 you cannot install WSL Linux distributions using the Microsoft Store. Because it doesn’t support Microsoft Store. In this case, while WSL itself is available, you may need to download Linux distributions directly from https://learn.microsoft.com/en-us/windows/wsl/install-manual#downloading-distributions

This will download a <distro>.appxbundle packages. Or you can download a distro from the below links.

Extract and install a Linux distribution

In the Downloads folder, you will find an .appxbundle file. You should rename this file to a .zip extension and then extract the contents of the zip file into a folder.

How to Install WSL on Windows Server 2019

You can do it through Windows Explorer or PowerShell:

PS C:\Users\Administrator> cd .\Downloads\
PS C:\Users\Administrator\Downloads> Rename-Item .\Ubuntu2004-220404.appxbundle ubuntu.zip
PS C:\Users\Administrator\Downloads> Expand-Archive .\ubuntu.zip ubuntu

In the extracted folder, you can see the appx package. You can install it using Add-AppxPackage command:

How to Install WSL on Windows Server 2019
PS C:\Users\Administrator\Downloads> cd .\ubuntu\
PS C:\Users\Administrator\Downloads\ubuntu> Add-AppxPackage .\Ubuntu_2004.4.2.0_x64.appx

Once done, you can see the Ubuntu in the installed app.

How to Install WSL on Windows Server 2019
How to Install WSL on Windows Server 2019

Leave a Comment

Required fields are marked *