Unable to Remove Windows Subsystem for Linux


  1. Posts : 3
    Windows 10 Education
       #1

    Unable to Remove Windows Subsystem for Linux


    Windows Version: 1809 (OS Build 17763.1098)

    I am trying to setup Ubuntu 18.04 LTS in WSL. I have enabled WSL

    Code:
    PS C:\Windows\system32> Get-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
    
    
    FeatureName      : Microsoft-Windows-Subsystem-Linux
    DisplayName      : Windows Subsystem for Linux
    Description      : Provides services and environments for running native user-mode Linux shells and tools on Windows.
    RestartRequired  : Possible
    State            : Enabled
    CustomProperties :
                       ServerComponent\Description : Provides services and environments for running native user-mode Linux
                       shells and tools on Windows.
                       ServerComponent\DisplayName : Windows Subsystem for Linux
                       ServerComponent\Id : 1033
                       ServerComponent\Type : Feature
                       ServerComponent\UniqueName : Microsoft-Windows-Subsystem-Linux
                       ServerComponent\Deploys\Update\Name : Microsoft-Windows-Subsystem-Linux
    I have gone to the Windows Store and downloaded Ubuntu 18.04 LTS, but when I click launch I get the following error

    Code:
    Installing, this may take a few minutes...
    WslRegisterDistribution failed with error: 0x8007019e
    The Windows Subsystem for Linux optional component is not enabled. Please enable it and try again.
    See https://aka.ms/wslinstall for details.
    Press any key to continue...
    I thought there might have been an error when I originally enabled WSL, so I tried to disable it, but when I do I get this error

    Code:
    PS C:\Windows\system32> Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
    Disable-WindowsOptionalFeature : Disable-WindowsOptionalFeature failed. Error code = 0x80004005
    At line:1 char:1
    + Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [Disable-WindowsOptionalFeature], COMException
        + FullyQualifiedErrorId : Microsoft.Dism.Commands.DisableWindowsOptionalFeatureCommand
    Does anyone know how I can fix this?

    - - - Updated - - -

    Does WSL1 require CPU virtualisation support??
      My Computer


  2. Posts : 5,330
    Windows 11 Pro 64-bit
       #2

    Have you executed below command:

    Code:
    Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
    After executing above command restart your computer.
      My Computer


  3. Posts : 3
    Windows 10 Education
    Thread Starter
       #3

    FreeBooter said:
    Have you executed below command:

    Code:
    Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
    After executing above command restart your computer.
    Yes, I have executed that, numerous times. And yes, I have restarted, numerous times.

    It seems to be working now. I did an upgrade last night (cant remember the specifics now, but it was upgrading to the latest version of Windows 10) and I also jumped into the BIOS to enable virtualisation. One, or both, of these fixed the issue I was having. Not sure what or how, but I suspect it was enabling virtualisation (even though WSL1 apparently doesnt need it??)
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 16:56.
Find Us




Windows 10 Forums