Before installing any Linux distros on windows, you must ensure that „Windows Subsystem for Linux“ optional feature is enabled. You can either enable it through Control Panel > Programs > Turn Windows features on or off or through Powershell.
Windows 10 Control Panel
Control Panel > Programs > Turn Windows Features on or off
You can also enable Linux subsystem for Windows through Powershell. Run powershell as administrator and run :
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
Restart your PC when prompted.
After it restarts, if you have Windows build 16215 or later*, head out to Microsoft’s Store and choose your favorite Linux distribution from there.
To find out what Windows 10. build you have installed, open Settings > System > About .
And that’s it. Start installation via Microsoft Store, and Linux will install successfully.