Share via


[Solved] Can't enable Windows Subsystem for Linux

Question

Tuesday, February 13, 2018 6:16 AM

I tried enable it through control panel but it disable on restart.

Then I try enable it through PowerShell with

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

but it saidEnable-WindowsOptionalFeature : One or several parent features are disabled so current feature can not be enabled.
At line:1 char:1
+ Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows- ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Enable-WindowsOptionalFeature], COMException
    + FullyQualifiedErrorId : Microsoft.Dism.Commands.EnableWindowsOptionalFeatureCommandMy laptop is Lenovo Legion Y520Windows 10 Home Single Language Version 1709 Build 16299.192Thank you in advance.

All replies (2)

Wednesday, February 14, 2018 4:47 AM âś…Answered

Hi,

Try performing a repair upgrade.

https://answers.microsoft.com/en-us/windows/forum/windows_10-windows_install-winpc/how-to-perform-a-repair-upgrade-using-the-windows/35160fbe-9352-4e70-9887-f40096ec3085

To install bash, open a Command Prompt (Administrator) > type lxrun /install > hit Enter.

Note: The command will ask for a username and password for the user account in the Bash environment.

You may also skip the account setup during the installation of bash, open a Command Prompt (Administrator) > type lxrun /install /y > hit Enter.

Note: The root account will be the default user account without a password.

Best Regards,

Tao

Please remember to mark the replies as answers if they help. If you have feedback for TechNet Subscriber Support, contact [email protected].


Wednesday, March 7, 2018 4:12 PM

Thank you very much

I got it fixed some time ago and forgot about this thread.

In my case, some windows updates are failed and manual installation fixed it.

But still, much thank you.