Ubuntu 应用程序:WslRegisterDistribution 失败,错误为 0x80070057(参数不正确)

Ubuntu app: WslRegisterDistribution failed with error 0x80070057 (incorrect parameter)

我从 Microsoft Store 下载了 Ubuntu 20.04 LTS。
当我在我的 Windows 10(2004 版)中启动应用程序时,我收到这个神秘错误:

Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x80070057
Error: 0x80070057 Falscher Parameter.

(“Falscher Parameter”在英语中可能是错误的参数。)

我在网上和 Whosebug 上进行了搜索,但找不到解决方案,甚至找不到对此错误的解释。如果有任何提示,我将不胜感激。

如果我早点阅读 installation instructions,我会发现这个:

To use this feature, one first needs to use "Turn Windows features on or off" and select "Windows Subsystem for Linux", click OK, reboot, and use this app.

The above step can also be performed using Administrator PowerShell prompt:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

我使用了 PowerShell 提示符并能够立即启动 Ubuntu 应用程序,而无需重新启动。

我已经尝试了所有的解决方案,全部。从重新启动 LXSS 到全新安装。什么都没用,有用的是简单的重命名。如果您之前使用 linux 子系统的文件夹的名称类似于 ubuntu,并且您想再次安装它,请将名称更改为其他名称。

powershell 命令:

ren ubuntu xxd`

基本folder/zip重命名解决了问题

以管理员身份从 MS-DOS 控制台尝试运行以下命令:

bcdedit /set hypervisorlaunchtype auto

重新启动 Windows 10 并再次启动 UBUNTU 应用程序。

警告:如果您在 Oracle VM VirtualBox 中有一个 Ubuntu 虚拟机,该虚拟机将停止工作。要使其再次运行,您必须输入相反的指令:

bcdedit /set hypervisorlaunchtype off

在我的例子中,'error 0x80070057',我想将 WSL 安装到 SD 卡(或外部存储)。这是错误的,现在不允许。

安装到硬盘(C盘)就解决了