系统相关
首页 > 系统相关> > windows10 : wsl --set-version 2 Error: 0xffffffff 问题的解决方案

windows10 : wsl --set-version 2 Error: 0xffffffff 问题的解决方案

作者:互联网

问题描述

win10 安装了wsl,并且升级到了wsl2.
从github CentWSL 下载了CentOS,并且本地开启了WSL CentOS v1
想要升级到v2,使用命令
wsl --set-version CentOS 2
却报错:
Error: 0xffffffff

走了点歪路

正确解决方案

在这个文章里面
WSl issue:WSL2 distros fail on start with Error 0xffffffff. (Exit code 4294967295 if launched from Windows Terminal) #4929
里面有个人提到了:

Check and stop any process listening 53/UDP
#4364 (comment)

以及 WSl issue:WslRegisterDistribution failed with error: 0xffffffff

Last edit:
After manually going over basically everything on my laptop, I've eventually found that it was the Acrylic DNS Proxy service I'm using. The service was grabbing port 53 and preventing the ICS service from binding to it.

为什么要说这个53呢?
原来这个端口是 DNS 代理:

DO THIS WORKED FOR ME: -
netstat -a -b
finds out which process is listening on a port on Windows
then with Task manager KILL the process running on ::53 (port 53 usually ArcylicDNS...)
then start wsl

我找了一下本机,原来我开启了 CCPROXY 其中就有DNS代理, 但是没有端口配置, 通过 任务管理器=》性能=>资源监视器=>网络=>侦听端口 查到了 53 的确是CCProxy 使用的.
关掉 CCProxy 中的DNS ,或者直接关掉 CCProxy 就好了.
使用 wsl --set-version CentOS<Distro> 2 直接升级成功.
太好了.

其他的链接 也有提高这个53/UDP 端口: WSL 2 安装和升级过程中错误的解决方法

标签:set,CentOS,--,windows10,53,wsl,0xffffffff,DNS,WSL
来源: https://www.cnblogs.com/ayanmw/p/14868526.html