WSL异常docker一直staring错误:[已退出进程,代码为 4294967295]解决办法

彦祖 303

关于WSL

Windows Subsystem for Linux(简称WSL)是一个在Windows 10\11上能够运行原生Linux二进制可执行文件(ELF格式)的兼容层。它是由微软与Canonical公司合作开发,其目标是使纯正的Ubuntu、Debian等映像能下载和解压到用户的本地计算机,并且映像内的工具和实用工具能在此子系统上原生运行

错误代码:4294967295

关于这个问题是第一次碰到,由于昨天晚上直接强制关机导致WSL早上启动异常,网上百度了下说是在
启动或关闭windows功能中:重启 hyper-v 与 适用于Linux的windows子系统就可以了,但是好像还是不行。

WSL异常docker一直staring错误:[已退出进程,代码为 4294967295]解决办法

解决办法

管理员权限执行

DISM /online /disable-feature /featurename:VirtualMachinePlatform /norestart

DISM /online /disable-feature /featurename:Microsoft-Windows-Subsystem-Linux /norestart

重启计算机后,继续执行

DISM /online /enable-feature /featurename:VirtualMachinePlatform /norestart

DISM /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /norestart

重置WinSock
netsh winsock reset

再进行重新启动 就可以了

分享