Replies: 16 comments 10 replies
-
#5428 as an initial matter. Do not run The syntax above is incorrect. Docs are here. For your scenario, with distribution
|
Beta Was this translation helpful? Give feedback.
-
For anyone having this issue .
|
Beta Was this translation helpful? Give feedback.
-
Thanks for your your response. I appreciate your quick response but I looked at the Doc page .
So I don't see how my use of the command is incorrect. If it is can the Docs be updated to reflect the correct command please. If the Docs are correct please re-open this ticket. |
Beta Was this translation helpful? Give feedback.
-
Your first try was Your second try was |
Beta Was this translation helpful? Give feedback.
-
Using "wsl --set-distribution ubuntu 2" worked for me. thanks @therealkenc. |
Beta Was this translation helpful? Give feedback.
-
I've tried the command "wsl --set-distribution ubuntu 2" as administrator (I've also tried it with "wsl.exe" and it didn't work) and it still gives me the response "There is no distribution with the supplied name." I've followed the instructions listed here: https://docs.microsoft.com/en-us/windows/wsl/wsl2-kernel Does anyone have any ideas? |
Beta Was this translation helpful? Give feedback.
-
It is |
Beta Was this translation helpful? Give feedback.
-
--set-version is also not working. I have tried:
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Here's how you do it, don't uninstall stuff. Pwease :)I have different ridiculous stuff built and it all works after changes. |
Beta Was this translation helpful? Give feedback.
-
Try the below steps : `PS C:\Users\rajku> wsl --set-version Ubuntu-20.04 2
Note: Replace Ubuntu-20.04 with Ubuntu-18.04 if you are running Ubuntu-18.04 |
Beta Was this translation helpful? Give feedback.
-
(Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux ) run this command in Powershell with admin privileges, it worked for me |
Beta Was this translation helpful? Give feedback.
-
This worked for me |
Beta Was this translation helpful? Give feedback.
-
I could not make it work with |
Beta Was this translation helpful? Give feedback.
-
https://docs.microsoft.com/en-us/windows/wsl/install The documentation literally says: Even though it is wrong and should be |
Beta Was this translation helpful? Give feedback.
-
Hi
Environment:
Windows - 10.0.19041.0 Microsoft Windows NT 10.0.19041.0
Ubuntu - Ubuntu 20.04 LTS
I have installed WSL2
In powershell (running as admin) I set the default version of wsl
wsl --set-default-version 2
I then set wls -l -v
This tells me the Ubuntu version I have uses WSL 1
I then try wsl --set-version- Ubuntu-20.04 2
I get the error
'There is no distribution with the supplied name'
In my Ubuntu I use lsb_release -a to get the version it displays
Distributor ID: Ubuntu
Description: Ubuntu 20.04 LTS
Release: 20.04
Codename: focal
So I thought my version was Ubuntu-20.04
Here is a screen shot of what happens
I looked at the Ubuntu version in the Settings -> Apps -> Apps and Features
This had the version as 2004.2020.424.0
However running wsl --set-version Ubuntu-2004.2020.424.0 2 resulted in the same error
Beta Was this translation helpful? Give feedback.
All reactions