Command "wsl --set-default-version 2" doesn't change version of WSL #6505
Replies: 5 comments 15 replies
-
Your default version is now 2. You can change the version of an already installed distro with |
Beta Was this translation helpful? Give feedback.
-
OK, but when I run "wsl -l" it shows me that version "Ubuntu" is default (see the word "Padrão" on command output below).
Also, on this MS tutorial here they said on Step 5 to use So it got a little complicated. How can I confirm what version my system is running now or , at least, uninstall the version 1? |
Beta Was this translation helpful? Give feedback.
-
There is no version "the system" is running. Each of your installed distributions is either WSL1 or WSL2 independently, by-design. Both version 1 and 2 are always available; you don't "uninstall" WSL 1. You can get which version a given distribution is with On recent builds (possibly not yours) you can query the default version with Querying is a little bit superfluous. If you are ever unsure of your default, you can use Perhaps the documentation could be improved to state explicitly that |
Beta Was this translation helpful? Give feedback.
-
I have an issue where wsl --set-default-version 2 simply ignores my input and returns the help text, the same happens when trying to convert a specific distro to version 2.
Build 21390, WSL reinstalled from scratch using wsl --install, latest kernel, there's nothing much that I can update. Anyone experienced such issue? |
Beta Was this translation helpful? Give feedback.
-
Hi Mateusz,
Mine was an issue relating to a fresh install and the version of Windows Server 2022. When I updated it to the latest version it worked.
Check your version maybe?
From: Mateusz Drab ***@***.***>
Sent: Monday, February 20, 2023 3:43 PM
To: microsoft/WSL ***@***.***>
Cc: Coenraad Middel ***@***.***>; Comment ***@***.***>
Subject: Re: [microsoft/WSL] Command "wsl --set-default-version 2" doesn't change version of WSL (Discussion #6505)
Is there an issue raised for this? If not, we need to raise one otherwise this will never get fixed/looked into.
-
Reply to this email directly, view it on GitHub<#6505 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ATVPLTAZC4DBNOBBDQFZY7DWYNYHHANCNFSM4W5J3BZQ>.
You are receiving this because you commented.Message ID: ***@***.******@***.***>>
|
Beta Was this translation helpful? Give feedback.
-
Environment
Microsoft Windows [10.0.19042.746]
Windows 10 Pro, 20H2
Experience: Feature Experience Pack 120.2212.551.0
Copy of the terminal output
On my Windows Terminal I type:
wsl -l
Distribuições do Subsistema do Windows para Linux:
Ubuntu (Padrão)
Ubuntu-20.04
Then, after run
wsl --set-default-version 2
I get:Para obter informações sobre as principais diferenças em relação ao WSL 2, visite https://aka.ms/wsl2
What translated from pt-br mean "To get info about main differences relation to WSL 2, visit https://aka.ms/wsl2". But, unfortunelly, the default version keep on version_number 1.
What possibly be wrong?
Beta Was this translation helpful? Give feedback.
All reactions