Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

How to Set Linux Distro Version to WSL 1 / WSL 2 in Windows 10

Learn how to set Linux Distro Version to WSL 1 / WSL 2 in Windows 10 with clear steps, practical tips, and key considerations for completing the task safely.

Table of Contents

This guide explains how to set Linux Distro Version to WSL 1 / WSL 2 in Windows 10, with clear steps, practical tips, and important checks before you begin.

WSL 2 (Windows Subsystem for Linux 2) is a new version of the architecture in WSL that changes the way Linux distributions interact with Windows. WSL 2's primary goals are to increase file system performance and add system-wide compatibility.

Each Linux distribution can run as WSL 1 or WSL 2 and switch between versions at any time. WSL 2 is a 'major overhaul' of the underlying architecture, as well as the use of virtualization technology and the Linux kernel to enable new features.

With Windows Subsystem for Linux (WSL) enabled, you can install Linux distro applications from the Microsoft Store.

Users can set WSL 1 or WSL 2 as the default architecture used as the default version, whenever a new Linux distribution is installed.

Users can also set the Linux distro version to WSL 1 or WSL 2 for the existing installed Linux distributions at any time.

This guide will show you how to set the Linux distro version to WSL 1 or WSL 2 in Windows 10.

Set the default distro version to WSL 1 or WSL 2 for new Linux distributions

Step 1. Open PowerShell.

Step 2. Copy and paste the command below you want to use into PowerShell and press Enter.

(Make WSL 1 the default version)

wsl --set-default-version 1

Or:

(Make WSL 2 the default version)

wsl --set-default-version 2

Set the default distro version to WSL 1 or WSL 2 for new Linux distributions screenshot

Set the default distro version to WSL 1 or WSL 2 for new Linux distributions

Step 3. Now, you can close PowerShell if you want.

Set the distro version to WSL 1 or WSL 2 for specifically installed Linux distributions

Step 1. Open PowerShell.

Step 2. Copy and paste below command into PowerShell, press Enter and write down the name of the Linux distribution (eg "Ubuntu") you want to change version (eg "1" or "2").

wsl --list --verbose

Set the distro version to WSL 1 or WSL 2 for specifically installed Linux distributions screenshot 2

Note down the name of your Linux distribution

Step 3. Type the command below into PowerShell and press Enter.

wsl --set-version 

Replace in the above command with the actual Linux distribution name (eg "Ubuntu") from step 2.

Replace in the above command with the number 1 (WSL 1) or 2 (WSL 2) for the default architecture you want.

For example:

wsl --set-version Ubuntu 2

Set the distro version to WSL 1 or WSL 2 for specifically installed Linux distributions screenshot 3

Set the distro version to WSL 1 or WSL 2 for specifically installed Linux distributions

Step 4. Now, you can close PowerShell if you want.

Good luck.

FAQ

What should I know about Set Linux Distro Version to WSL 1 / WSL 2 in Windows 10?

Focus on the key features, requirements, limitations, and practical use cases explained in this guide.

How do I get the best results with Set Linux Distro Version to WSL 1 / WSL 2 in Windows 10?

Follow the recommended steps, use current software or information, confirm compatibility, and review settings before major changes.

Are there any risks or limitations?

Potential limitations depend on compatibility, data quality, cost, privacy, support, and how the product or method is used.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.