Ryan

解决WSL2报错:参考的对象类型不支持尝试的操作
突然发现WSL无法使用PS C:\WINDOWS\system32> wsl.exe --shutdown ...
扫描右侧二维码阅读全文
23
2019/07

解决WSL2报错:参考的对象类型不支持尝试的操作

突然发现WSL无法使用

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类应用(我安装了Proxifier),复位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
搬瓦工年付$187机房套餐补货了,电信联通优化,512M内存/500G流量/1G带宽,建站稳定,优惠码:BWH1ZBPVK,【点击购买】!
搬瓦工年付$28CN2高速线路,512M内存/500G流量/1G带宽,电信联通优化,延迟低,速度快,建站稳定,优惠码同上,【点击购买】!
Last modification:July 22nd, 2019 at 04:30 pm
If you think my article is useful to you, please feel free to appreciate

Leave a Comment