- 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
verat a Windows Command Prompt)Microsoft Windows [Version 10.0.17134.48]
Following instructions at https://docs.microsoft.com/en-ca/windows/wsl/install-win10 I pasted
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linuxinto an administrator powershell console.A "running" progress indicator appears but stays at 0% for some minutes, then fails with:
I rebooted and tried again, same results.
Progress meter progressing to 100% then a prompt to reboot computer OR meaningful error message on why it couldn't complete.
some_commandis failing, then runstrace -o some_command.strace -f some_command some_args, and link the contents ofsome_command.stracein a gist here).