Forum Discussion
How to install the Linux Windows Subsystem in Windows 11
Hi,
I tried to write the wsl --install comand in my cmd prompt, ( in windows 11 ) but it doesn't work , after i write wsl --install it shows a list of comands but it doesn't start the Ubuntu installation. I have already installed Docker in my PC. Could you help me please ? Thank you best wishes
- EfetoborJan 25, 2022Copper Contributor
hi, DanielePP that is because you didn't specify the type of Linux you wanted, also the tutorials usally assume you know the full command so they tend to skip it to do you use this command say maybe for ubuntu ''wsl -- install -d ubuntu'', if it was red hat it would be "wsl --install -d redhat"
- Barry_BazzaJan 28, 2022Brass Contributor
According to Microsoft the single command ''wsl --install" should automatically download and install Ubuntu.
- ItsWindows_DuhDec 22, 2022Copper Contributor
Barry_Bazza That's not true and you know better- if you bothered to read that is. Microsoft ("windows") does not state anywhere that simply typing 'wsl --install' will install any specific distro on your system. you have to specify what distro and sometimes what version. Ubuntu for example: "wsl --install -d Ubuntu-20.04" will install Ubuntu 20.04 LTS subsystem and you can adjust for what rendition you want. Don't be unnecessarily ignorant just to argue points you are unable to substantiate
- DanielePPJan 28, 2022Copper ContributorHi, now It works
Thank you very much.
Best wishes
D
- HarshadYPMar 19, 2022Copper Contributor
HI When I have tried first then I had same problem but when I run command prompt as administrator rights then it works ok.DanielePP
- DanielePPMar 19, 2022Copper ContributorHi, thank you !
- vikassardharaDec 30, 2023Copper ContributorRun CMD as administrator
- josephanpriestly17Aug 10, 2024Copper Contributor
when the command is written on my system, it shows a list of instructions but installation does not start