Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WSL is not installing #5833

Closed
roaringsundew40 opened this issue Aug 30, 2020 · 7 comments
Closed

WSL is not installing #5833

roaringsundew40 opened this issue Aug 30, 2020 · 7 comments

Comments

@roaringsundew40
Copy link

I downloaded the Ubuntu 20.04 LTS and I ran it. This is the output it gave me.
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 looked it up online I found that I have to use the command
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart.
But that gives the error
`Deployment Image Servicing and Management tool
Version: 10.0.17134.1

Image Version: 10.0.17134.765

Error: 0x800f0831

Feature name Microsoft-Windows-Subsystem-Linux is unknown.
A Windows feature name was not recognized.
Use the /Get-Features option to find the name of the feature in the image and try the command again.

The DISM log file can be found at C:\Windows\Logs\DISM\dism.log`

I also found out that that I can use the GUI on Turn Windows Features on or off. But mine does not seem to load.

image

I found this article

It says to use the command
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
But that gives the error
`Enable-WindowsOptionalFeature : Feature name Microsoft-Windows-Subsystem-Linux is unknown.
At line:1 char:1

  • Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows- ...
  •   + CategoryInfo          : NotSpecified: (:) [Enable-WindowsOptionalFeature], COMException
      + FullyQualifiedErrorId : Microsoft.Dism.Commands.EnableWindowsOptionalFeatureCommand`
    
    

So, in summary, I am trying to run Ubuntu 20.04 LTS but it is telling me to install WSL Components but anything I do to install is not working. Could anyone help me with this?

Thanks!

@therealkenc
Copy link
Collaborator

10.0.17134.765

That is going to be too far back for a repro. If you can't get a list of features in "Turn Windows features on or off" then you have more general problems than WSL. Windows Update to latest (currently 2004 aka 20H1) can sometimes solve many ills by virtue of reinstalling all the things. Tangentially similar #3689.

@licanhua
Copy link
Collaborator

Are you using x86 OS? only AMD64 or ARM64 supports WSL

@roaringsundew40
Copy link
Author

@therealkenc I have a Dell Computer and since my computer is very old it is not updating. According to Dell my computer is not compatible for any version then what I have right now.

@licanhua I have a X64 OS.

@therealkenc
Copy link
Collaborator

For the giggles, try running the following to see if you can install any optional components (nvm WSL). From an elevated Powershell:

PS C:\> Get-WindowsOptionalFeature -Online

If it returns anything (but presumably not Microsoft-Windows-Subsystem-Linux) try enabling something harmless like TelnetClient.

I found some lore on the web that might or might not help. It comes with no endorsement.

Another popular path forward, assuming your box is disposable, is to disregard Dell, install Windows from an image, and hope for the best. Sometimes it works out. YRMV.

@roaringsundew40
Copy link
Author

`PS C:\Windows\system32> Get-WindowsOptionalFeature -Online
Get-WindowsOptionalFeature : Get-WindowsOptionalFeature failed. Error code = 0x800f0831
At line:1 char:2

  • Get-WindowsOptionalFeature -Online
  •  + CategoryInfo          : NotSpecified: (:) [Get-WindowsOptionalFeature], COMException
     + FullyQualifiedErrorId : Microsoft.Dism.Commands.GetWindowsOptionalFeatureCommand
    

`

You may be right... I might not be able to use Get-WindowsOptionalFeature.

@therealkenc
Copy link
Collaborator

Yes, sadly there isn't a WSL actionable here (anymore than there is a TelnetClient actionable). Do hope you can get your old box whole again.

@roaringsundew40
Copy link
Author

Ok Thanks for your help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants