How to install wsl2 offline

Ripon Banik
2 min readApr 10, 2021

Manually install wsl2 when locked in Microsoft Store

Introduction

Microsoft offers running Linux in Windows using technology was WSL (Windows Subsystem for Linux). The new version of wsl which is called wsl2 allow to run a Microsoft customized Linux Kernel with distro of your choice. In this article, I will use Ubuntu distro.

To update to WSL 2, you must be running Windows 10.

  • For x64 systems: Version 1903 or higher, with Build 18362 or higher.
  • For ARM64 systems: Version 2004 or higher, with Build 19041 or higher.
  • Builds lower than 18362 do not support WSL 2.

To check your version and build number, select Windows logo key + R, type winver, select OK. (Or enter the ver command in Windows Command Prompt)

Pre-requisites

The follow are required to be installed before you can run the installation of distro. It will install wsl.exe as well.

a. Enable the Windows Subsystem for Linux

Open PowerShell as Administrator and run:

dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart

b. Enable Virtual Machine feature

Open PowerShell as Administrator and run:

dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

--

--

Ripon Banik
Ripon Banik

Written by Ripon Banik

A Cloud and DevSecOps Engineer and Consultant, passionate about simplification of technology and make it consumable. https://www.linkedin.com/in/riponbanik/

Responses (3)