问题情况
参考的对象类型不支持尝试的操作。
Error code: Wsl/Service/0x8007273d
解决方法
netsh winsock reset
详细过程
Microsoft Windows [版本 10.0.19045.4291]
(c) Microsoft Corporation。保留所有权利。
C:\Users\17569>wsl
参考的对象类型不支持尝试的操作。
Error code: Wsl/Service/0x8007273d
C:\Users\17569>netsh winsock reset
成功地重置 Winsock 目录。
你必须重新启动计算机才能完成重置。
C:\Users\17569>wsl
Sleeping for 1 second to let systemd settle
Welcome to Ubuntu 20.04 LTS (GNU/Linux 5.15.133.1-microsoft-standard-WSL2 x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
154 updates can be installed immediately.
1 of these updates is a security update.
To see these additional updates run: apt list --upgradable
Last login: Sun Apr 7 14:40:46 CST 2024 on pts/0
xk@xk-Lenovo:/mnt/c/Users/17569$