简体   繁体   English

WSL 2 安装 Linux 失败,错误代码:0x80370114

[英]WSL 2 Installing Linux failed, error code: 0x80370114

I've installed PowerShell and WSL using the Microsoft Doc .我已经使用Microsoft Doc安装了 PowerShell 和 WSL 。

However, when attempting to wsl --install kali-Linux from PowerShell, I'm getting an error 0x80370114 .但是,当尝试wsl --install kali-Linux from PowerShell 时,我收到错误0x80370114

Well, some good news and bad news.好吧,一些好消息和坏消息。

First, the good - from a couple of searches that resulted in this , this , and this , I believe the error that you are receiving is due to an incorrect setting in Windows Exploit Protection .首先,好的 - 从导致这个这个这个的几个搜索中,我相信您收到的错误是由于 Windows漏洞利用保护中的设置不正确造成的。

Check in Windows Security -> App & Browser Control -> Exploit Protection Settings :检查Windows 安全->应用和浏览器控制->漏洞利用保护设置

  • In System Settings , Control Flow Guard (CFG) should be "On" (in my case, it is "Use default (On)".System Settings中, Control Flow Guard (CFG)应该是“On”(在我的例子中,它是“Use default (On)”。

  • In Program Settings , there should be entries for:Program Settings中,应该有以下条目:

    • C:\Windows\System32\vmcompute.exe
    • C:\Windows\System32\vmwp.exe

    Both should have Control Flow Guard set to:两者都应将Control Flow Guard设置为:

    • Override System Settings覆盖系统设置
    • On
    • Use Strict CFG使用严格的 CFG

There are some reports that turning these off corrects the problem, but that's probably more of a "patch" than a true resolution.有一些报道称关闭这些功能可以解决问题,但这可能更像是一个“补丁”而不是真正的解决方案。

Hopefully that will resolve the 0x80370114 error.希望这将解决0x80370114错误。

Now the bad news...现在坏消息...

When I last checked a few days ago, the version of Kali that is installed via wsl --install is still so old that it won't even update.几天前我上次检查时,通过wsl --install安装的 Kali 版本仍然太旧,甚至不会更新。 See this answer for details and potential solutions.有关详细信息和潜在解决方案,请参阅此答案

It's best if you can install from the Store.最好能从商店安装。

Windows subsystem feature was disabled, I fixed it using these cmds below. Windows 子系统功能被禁用,我使用下面的这些 cmds 修复了它。

dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart 

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在 Windows Subsystem for Linux (WSL) 上安装 mitmproxy - Installing mitmproxy on Windows Subsystem for Linux (WSL) 在 WSL(适用于 Linux 的 Windows 子系统)上安装 Ruby 2.3 - Installing Ruby 2.3 on WSL (Windows Subsystem for Linux) 为 windows 11 安装 WSL 时出错 - Error while installing WSL for windows 11 应用安装失败并显示错误消息:安装 ganache 时出现错误 0x80070005 - App installation failed with error message: error 0x80070005 while installing ganache 在 WSL 上安装和运行 Airflow - Installing and running Airflow on WSL 安装服务时失败错误? - Failed error when installing service? 为什么此代码在Linux上能正常运行,但在Windows上却失败? - Why this code works well in Linux but failed in Windows? 错误代码:0x80071A90-在Windows 10.1上安装IIS时 - Error code:0x80071A90 - When Installing IIS on Windows 10.1 错误代码:0x800f0954 在 windows 11 上安装 .net framework 3.5(解决方案) - Error Code: 0x800f0954 installing .net framework 3.5 on windows 11 (Solution) PyCharm 启动错误:无法检测 Windows 子系统上的图形环境 Linux (WSL) Ubuntu - PyCharm Startup Error: Unable to detect graphics environment on Windows Subsystem for Linux (WSL) Ubuntu
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM