为 Linux 安装 Windows 子系统并得到错误 0xc03a001a 和一长串或问号

Install Windows Subsystem for Linux and get error 0xc03a001a and a long list or question marks

我正在按照 https://docs.microsoft.com/en-us/windows/wsl/install-win10 中的步骤为 Linux 安装 Windows 子系统。第 1 步到第 5 步对我来说一切正常,但在第 6 步中,当我打开从 Microsoft Store 下载的 Ubuntu 20.04 时,出现以下错误。

“WslRegisterDistribution 失败,出现错误:0xc03a001a

错误:0xc03a001a ??????????"

我看到其他人也有同样的 0xc03a001a 错误,但没有人得到这么长的问号列表。任何人都可以帮我吗?非常感谢!

不确定问号,但它们可能出于某种原因掩盖了真正的错误。 “0xc03a001a”似乎通常对应于“虚拟硬盘文件必须是未压缩和未加密的并且不能是稀疏的”。 (与其他人一起参见 this Github issue

大多数人的解决方案似乎是确保分发文件夹未压缩。引用自 this comment:

Essentially... find the package under C:\Users\AppData\Local\Packages and right click the folder, check advanced options and disable compression. Run the launch again.

  • Of course ubuntu is listed under "CanonicalGroupLimited.Ubuntu" so if you sort alphabetically it will appear under "C"
  • Debian is under "TheDebianProject" so that will appear under "T"

我遇到了同样的问题。我通过删除 C:\Users\MUTI-MIS\AppData\Local\Packages 中已安装发行版的文件夹来修复它。然后我成功地重新安装了发行版。