Skip to content

Install fails at Enable-WindowsOptionalFeature step #3413

@maphew

Description

@maphew
  • Your Windows build number: (Type ver at a Windows Command Prompt)

Microsoft Windows [Version 10.0.17134.48]

  • What you're doing and what's happening: (Copy&paste specific commands and their output, or include screen shots)

Following instructions at https://docs.microsoft.com/en-ca/windows/wsl/install-win10 I pasted Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux into an administrator powershell console.

A "running" progress indicator appears but stays at 0% for some minutes, then fails with:

Enable-WindowsOptionalFeature : DismInitialize failed. Error code = 0x80004005
At line:1 char:1
+ Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows- ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Enable-WindowsOptionalFeature], COMException
    + FullyQualifiedErrorId : Microsoft.Dism.Commands.EnableWindowsOptionalFeatureCommand

I rebooted and tried again, same results.

  • What's wrong / what should be happening instead:

Progress meter progressing to 100% then a prompt to reboot computer OR meaningful error message on why it couldn't complete.

  • Strace of the failing command, if applicable: (If some_command is failing, then run strace -o some_command.strace -f some_command some_args, and link the contents of some_command.strace in a gist here).
strace -o Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux`
strace : The term 'strace' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
again.
At line:1 char:1
+ strace -o Enable-WindowsOptionalFeature -Online -FeatureName Microsof ...
+ ~~~~~~
    + CategoryInfo          : ObjectNotFound: (strace:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Metadata

Metadata

Assignees

No one assigned

    Labels

    installFailure to install

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions