01 [Install guides](https://logicpacks.io/install) · 15 min

# Install WSL on Windows

WSL (Windows Subsystem for Linux) runs a real Linux, usually Ubuntu, inside Windows, so Linux-only tools and guides work on your PC.

Roman Urdu: WSL se Windows ke andar Linux chal jata ha. Agar aap ke tools Linux ke liye bane hein toh yeh install kr lein, warna zaroori nahi.

**Cost:** Free, from Microsoft.

## Windows

1.  **Do you need it?** Use WSL if a guide or tool says "Linux or macOS only", or you want the same commands as most tutorials. Skip it if you only use Windows apps, or your PC has 4 GB of RAM or less: every tool on this site also has a native Windows path.
2.  Check your Windows version: press Win + R, type `winver`, press Enter. You need Windows 10 version 2004 or newer (build 19041+) or Windows 11.
3.  Right-click the Start button, open **Terminal (Admin)** or **PowerShell (Admin)**, and run:
    
    ```sh
    wsl --install
    ```
    
4.  Restart the computer when it asks. This installs WSL 2 with Ubuntu.
5.  After the restart, open **Ubuntu** from the Start menu. Wait for it to unpack, then pick a Linux username and password. The password does not show while you type; that is normal.
6.  Update Ubuntu once:
    
    ```sh
    sudo apt update && sudo apt upgrade -y
    ```
    
7.  If it hangs at 0.0%, download the distro first:
    
    ```sh
    wsl --install --web-download -d Ubuntu
    ```
    
8.  Low RAM? WSL 2 uses up to 50% of your memory by default. Open **WSL Settings** from the Start menu and lower the memory, or create `C:\Users\<you>\.wslconfig` with the two lines `[wsl2]` and `memory=2GB`. Then restart WSL:
    
    ```sh
    wsl --shutdown
    ```
    

## Check it worked

```sh
wsl -l -v
```

Ubuntu listed with VERSION 2

## Common errors

Error 0x80370102: "The virtual machine could not be started because a required feature is not installed."

Turn on virtualization in your BIOS/UEFI (often under CPU settings, named Intel VT-x, AMD-V or SVM). Also make sure the Virtual Machine Platform Windows feature is on. See [Enable virtualization on Windows](https://support.microsoft.com/windows/c5578302-6e43-4b4b-a449-8ced115f58e1).

`wsl --install` only prints the help text

WSL is already installed. Run `wsl --list --online` to see distros, then `wsl --install -d Ubuntu`.

WslRegisterDistribution failed with error 0x8007019e

The WSL feature is not on. Run `wsl --install` again in an admin PowerShell and restart.

"WSL 2 requires an update to its kernel component" (or error 0x1bc)

Run `wsl --update` in an admin PowerShell, then restart.

Windows feels very slow while Ubuntu is open

Cap the memory in `.wslconfig` (see the last step), close Ubuntu when you are done, or run `wsl --shutdown`.

## Official docs

-   [Microsoft Learn: Install WSL](https://learn.microsoft.com/en-us/windows/wsl/install)
-   [Microsoft Learn: Troubleshooting WSL](https://learn.microsoft.com/en-us/windows/wsl/troubleshooting)
-   [Microsoft Learn: WSL settings (.wslconfig)](https://learn.microsoft.com/en-us/windows/wsl/wsl-config)

Checked against these pages on 2026-12-05. Tools change: if a step differs, the official page wins.

[Install guides : All guides](https://logicpacks.io/install) [Next : Install git](https://logicpacks.io/install/git)

---

Canonical URL: https://logicpacks.io/install/wsl

Developed by TechRealm (techrealm.online), the software team. Operated by Al Jash Trading (Establishment), Abu Dhabi, since 1994, the legal entity that hosts and is responsible for the service. Economic licence CN-1030597, Abu Dhabi Registration Authority. Address: Office 5, Bani Yas West 4, Bani Yas, Abu Dhabi, UAE. Website: https://aljashtrading.com. Contact: hello@logicpacks.io, security@logicpacks.io, WhatsApp +1 713 632 2262 (https://wa.me/17136322262).

Machine-readable index: [/llms.txt](https://logicpacks.io/llms.txt). Plain facts: [/about.md](https://logicpacks.io/about.md). Safety: [/safety.md](https://logicpacks.io/safety.md).
