Wsl: There is no distribution with the supplied name. "Ubuntu"

Created on 11 Sep 2019  路  9Comments  路  Source: MicrosoftDocs/WSL

Following documentation it is suggested that "Ubuntu" is a valid name, however I found that I needed the LTS version number as well "Ubuntu-18.04". See these logs:

PS C:\WINDOWS\system32> wsl --set-version Ubuntu 2
There is no distribution with the supplied name.
PS C:\WINDOWS\system32> wsl --list --all
Windows Subsystem for Linux Distributions:
Ubuntu-18.04 (Default)
PS C:\WINDOWS\system32> wsl --set-version Ubuntu-18.04 2
Conversion in progress, this may take a few minutes...

Note that this repo's issue tracker is only for reporting issues with the WSL docs.

Other related issue repo's:

Most helpful comment

This is because you've installed Ubuntu-18.04 from the Microsoft Store. If you install regular Ubuntu the distro will be called Ubuntu! :)

All 9 comments

This is because you've installed Ubuntu-18.04 from the Microsoft Store. If you install regular Ubuntu the distro will be called Ubuntu! :)

Makes too much sense, I forgot I made that choice. They seemed like the same thing. Thanks

I uninstalled Ubuntu 18.04 and installed Ubuntu yet I see the same error message.

@onacit Please make sure you've run Ubuntu at least once! It should show up in when you run wsl -l

@craigloewen-msft , Is there a way to set the version even if it is installed from Microsoft store ?

I ran wsl --set-version Ubuntu-18.04 2, and I got a message back: "conversion in progress, this may take a few minutes..." So I think it's possible to update from the MIcrosoft store installed version! (update could take a couple hours, I hear)

I ran wsl --set-version Ubuntu-18.04 2, and I got a message back: "conversion in progress, this may take a few minutes..." So I think it's possible to update from the MIcrosoft store installed version! (update could take a couple hours, I hear)

Are you successful? I also get this message.

I ran wsl --set-version Ubuntu-18.04 2, and I got a message back: "conversion in progress, this may take a few minutes..." So I think it's possible to update from the MIcrosoft store installed version! (update could take a couple hours, I hear)

confirm for the version Ubuntu 20.04 on Microsoft store use:
wsl --set-version Ubuntu-20.04 2
It took a couple of seconds to complete successfully.

For me the issue was that I was using quotes. Without quotes everything works fine:

C:\Users\Admin>wsl --set-version "Ubuntu-18.04" 2
There is no distribution with the supplied name.

C:\Users\Admin>wsl --set-version Ubuntu-18.04 2
Conversion in progress, this may take a few minutes...
For information on key differences with WSL 2 please visit https://aka.ms/wsl2
Was this page helpful?
0 / 5 - 0 ratings

Related issues

sferich888 picture sferich888  路  3Comments

horvan picture horvan  路  4Comments

skycommand picture skycommand  路  7Comments

m4tt72 picture m4tt72  路  4Comments

SetTrend picture SetTrend  路  4Comments