转载:Ryan(版权属于)
突然发现WSL无法使用,Ubuntu无法启动
PS C:\WINDOWS\system32> wsl.exe --shutdown
PS C:\WINDOWS\system32> wsl.exe
The attempted operation is not supported for the type of object referenced.
根据Github issue可知是WSL2目前不兼容VPN类应用(我安装了EasyConnect),复位 winsock 配置并重启计算机就可以了
PS C:\WINDOWS\system32> netsh winsock reset
Sucessfully reset the Winsock Catalog.
You must restart the computer in order to complete the reset.
PS C:\WINDOWS\system32> wsl.exe
root@TIGERHOMEPC /mnt/c/Windows/System32
# exit