The Solution to WSL Error “The attempted operation is not supported for the type of object referenced”
“The attempted operation is not supported for the type of object referenced” error arises when you try to start your subsystem in Win10, which is Ubuntu on my PC. This is caused by the conflict of the network port between Proxifier and your WSL. There are two solutions to handle this.
Open your windows command line as administrator and run the below command:
netsh winsock reset
The drawback is that every time before you start WSL distribution, you have to repeat this command, which is a little fussy. You can use another way to avoid it.
Download NoLsp.exe from the below link:
Open your Windows Prompt as administrator and run the command:
Reopen your Ubuntu subsystem and the error is gone.