如何为 Windows 安装 Linux 子系统

如何为 Windows 安装 Linux 子系统

我在尝试在 Windows 10 机器上安装 Linux 子系统时遇到问题。

我正在按照以下程序操作,此网址。我尝试启动以下命令(在 Powershell 中,以管理员身份),但收到错误消息:

dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

Deployment Image Servicing and Management tool
Version: 10.0.16299.15

Image Version: 10.0.16299.1127


Error: 0x800f080c

Feature name VirtualMachinePlatform 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

我尝试过使用该Get-Feature选项,但我不知道如何让它工作:

dism.exe /online /GET-feature /featurename:VirtualMachinePlatform
...
Error: 87

The get-feature option is unknown.

我的 DISM 日志文件如下所示(仅第一行错误):

2020-12-17 15:44:08, Error                 DISM   DISM Package Manager: PID=9820 TID=9400 Failed to get the Update through CBS. - CDISMPackage::Internal_OpenFeature(hr:0x800f080c)
2020-12-17 15:44:08, Error                 DISM   DISM Package Manager: PID=9820 TID=9400 Failed to get the underlying CBS Feature - CDISMPackage::OpenFeature(hr:0x800f080c)
2020-12-17 15:44:08, Error                 DISM   DISM Package Manager: PID=9820 Feature name VirtualMachinePlatform is unknown. - CPackageManagerCLIHandler::Private_GetFeaturesFromCommandLine(hr:0x800f080c)
2020-12-17 15:44:08, Error                 DISM   DISM Package Manager: PID=9820 TID=9400 Unknown features were specified on the command-line. - CPackageManagerCLIHandler::Private_GetFeaturesFromCommandLine(hr:0x800f080c)
2020-12-17 15:44:08, Error                 DISM   DISM Package Manager: PID=9820 TID=9400 Failed to get the Feature List from the command line. - CPackageManagerCLIHandler::Private_ProcessFeatureChange(hr:0x800f080c)
2020-12-17 15:44:08, Error                 DISM   DISM Package Manager: PID=9820 TID=9400 Failed while processing command enable-feature. - CPackageManagerCLIHandler::ExecuteCmdLine(hr:0x800f080c)

有人知道现在该怎么做吗?
提前谢谢

答案1

这个问题是由最简单的计算机问题引起的:永远不要认为,因为你开始使用计算机,你就正在处理最新版本,正如你在以下命令响应中看到的那样:

正如所引用的 URL 中提到的:

要求

对于 x64 系统:版本 1903 或更高版本,Build 18362 或更高版本。

命令行winver结果:

Version 1709 (build ... 16229)

因此,正如墨菲我正在处理的 Windows 版本无法处理此功能。

相关内容