How To Change From WSL2 to WSL1

This is a post on how to change a Windows Subsystem for Linux (WSL) Distribution from running on Version 2 to Version 1.

WSL has two versions, the latest (2), and the original version (1). You can have many different Linux Distributions installed on your machine, and you can easily change the WSL Version for one of them.

This Microsoft documentation page explains the key differences between versions and will help explain why you might want to downgrade back to version 1 for your particular WSL development needs.

To change one of your WSL Distributions from WSL2 to WSL1, we just need to pass in the –set-version parameter and it’ll be converted very quick. I’m listing my available WSL Distro’s before and after to visually verify the change.

# check wsl distro versions
wsl -l -v

# change wsl distro using name above to desired version
wsl --set-version Ubuntu 1
WSL Downgrade WSL2 to WSL1


Comments

3 responses to “How To Change From WSL2 to WSL1”

  1. Bruno Ferreira Avatar
    Bruno Ferreira

    The version argument for the command is actually “–set-version”, not “–wsl-version”.

    1. pete Avatar
      pete

      Cheers for this, I’ll update.

    2. pete Avatar
      pete

      Updated, added words and sorted grammar.