PS C:\Users\xxx> wsl The stub received bad data. Error code: Wsl/Service/0x800706f7 PS C:\Users\xxx> wsl --version WSL version: 1.2.5.0 Kernel version: 5.15.90.1 WSLg version: 1.0.51 MSRDC version: 1.2.3770 Direct3D version: 1.608.2-61064218 DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp Windows version: 10.0.22621.2283 PS C:\Users\xxx> wsl --update Checking for updates. The most recent version of Windows Subsystem for Linux is already installed.
hilmarf指出卸载Symantec Encryption Desktop可以解决这个问题,并且认为WSL should be aware and able to handle different LSPs. Should be enough to just ignore the ones, which are not from Microsoft.
We have reproduced this issue. Apparently, wsl.exe displays this error if Winsock LSP DLL gets loaded into its process.
The easiest solution is to use WSCSetApplicationCategory WinAPI call for wsl.exe to prevent this. Under the hood the call creates an entry for wsl.exe at HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WinSock2\Parameters\AppId_Catalog This tells Windows nottoload LSP DLLs into wsl.exe process.
We have a tool that can make this call: www.proxifier.com/tmp/Test20200228/NoLsp.exe
Please just run as admin withthe full path to wsl.exe asthe parameter: NoLsp.exe c:\windows\system32\wsl.exe