On this link WSL Tutorial, the tutorial claims that
downloading the Ubuntu 24.04 WSL image from the Microsoft Store, then
running the command wsl --list will show Ubuntu-24.04 in the list of available WSL instances.
Which is not correct, effectively make the Option #1 of the tutorial invalid.
If follow the Option #1, the later command wsl --distribution Ubuntu-24.04 will fail with this output:
There is no distribution with the supplied name.
Error code: Wsl/Service/WSL_E_DISTRO_NOT_FOUND
Please fix this option or remove it if not applicable.
The solution from Automatic setup with cloud-init providing this command ubuntu2404.exe install --root may solve the problem of wsl --distribution Ubuntu-24.04.
On this link WSL Tutorial, the tutorial claims that
wsl --list
will showUbuntu-24.04
in the list of available WSL instances.Which is not correct, effectively make the
Option #1
of the tutorial invalid.If follow the
Option #1
, the later commandwsl --distribution Ubuntu-24.04
will fail with this output:Please fix this option or remove it if not applicable.
The solution from Automatic setup with cloud-init providing this command
ubuntu2404.exe install --root
may solve the problem ofwsl --distribution Ubuntu-24.04
.Tested system: