启用 Windows Linux 子系统错误

启用 Windows Linux 子系统错误

在以管理员身份运行的 powershell 中运行命令时,Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux不久后出现以下错误

Enable-WindowsOptionalFeature : The referenced assembly could not be found.
At line:1 char:1
+ Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows- ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : NotSpecified: (:) [Enable-WindowsOptionalFeature], COMException
+ FullyQualifiedErrorId : Microsoft.Dism.Commands.EnableWindowsOptionalFeatureCommand

答案1

我在新安装的 Windows 10 v. 1803 中遇到了同样的问题。对我而言,唯一有效的解决方案是升级到 v. 1809。

相关内容