人间熙攘,好久不见

vuePress-theme-reco Magic    2017 - 2023
人间熙攘,好久不见 人间熙攘,好久不见

Choose mode

  • dark
  • auto
  • light
Home
Category
  • tools
  • Zsh
  • iTerm2
  • Front-end
  • 版本控制-Git
  • Rust
  • skia-safe
  • 第三方对接
  • MQTT
  • Powershell
  • python
  • MD5
  • SHA1
  • wsl2
Tags
TimeLine
GitHub
  • Github (opens new window)
  • Before (opens new window)
author-avatar

Magic

23

文章

15

标签

Home
Category
  • tools
  • Zsh
  • iTerm2
  • Front-end
  • 版本控制-Git
  • Rust
  • skia-safe
  • 第三方对接
  • MQTT
  • Powershell
  • python
  • MD5
  • SHA1
  • wsl2
Tags
TimeLine
GitHub
  • Github (opens new window)
  • Before (opens new window)

wsl2 安装失败 与 vmware 有关

vuePress-theme-reco Magic    2017 - 2023

wsl2 安装失败 与 vmware 有关

Magic 2021-08-29 Win10

wsl2 升级时报错 找不到指定文件,导致 wls1 升级到 wsl2,原因与 安装 虚拟机有关,它的网络适配器把 wsl2 的 给搞坏了,解决方案:网络重置 哈哈 🤣

今天安装 vmware 虚拟机用来测试东西,发现安装后 导致 docker 打不开,报以下错误:

System.InvalidOperationException:
Failed to deploy distro docker-desktop to C:\Users\Chakrit Rakhuang\AppData\Local\Docker\wsl\distro: exit code: -1
stdout: Error: 0xffffffff

stderr:
at Docker.Core.WslShortLivedCommandResult.LogAndThrowIfUnexpectedExitCode(String prefix, ILogger log, Int32 expectedExitCode) in C:\workspaces\stable-2.3.x\src\github.com\docker\pinata\win\src\Docker.Core\WslCommand.cs:line 119
at Docker.Engines.WSL2.WSL2Provisioning.d__17.MoveNext() in C:\workspaces\stable-2.3.x\src\github.com\docker\pinata\win\src\Docker.Desktop\Engines\WSL2\WSL2Provisioning.cs:line 169
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
...

相关 issues Failed to deploy distro docker-desktop (opens new window)

找了半天 解决方案,发现都不能解决这个问题,然后我就去了 wsl 相关仓库下去寻找问题,因为 我连 wsl2 都用不了了,怀疑是 这个 环节出了问题,因为 docker 目前在 w10 上面是以 wsl 的方式来运行的,我以 wsl --set-version Ubuntu 2 报 找不到相关文件 简直了 😭

然后查看了几篇 wsl 下的相关 issues 怀疑是 网络适配器的锅,所以 一怒之下 网络 重置了下,它好了

注意:网络重置 重启后 导致 网络不可用,网络适配器也无正常工作,可以使用 CCleaner 修正下 注册表,然后重启下电脑就可以了,不用重置 电脑了

相关 issues:

  • The system cannot find the path specified. (opens new window)
  • Installing Any Distro on WSL2 Fails with "WslRegisterDistribution failed with error: 0x80070002" (opens new window)
  • Cant Migrate to WSL2 Error code: 0x80070002 (opens new window)
欢迎来到 人间熙攘,好久不见
看板娘