The Solution to WSL Error “The attempted operation is not supported for the type of object referenced”

Wangyj
May 19, 2021

--

“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:

http://www.proxifier.com/tmp/Test20200228/NoLsp.exe

Open your Windows Prompt as administrator and run the command:

NoLsp.exe C:\Windows\system32\wsl.exe

Reopen your Ubuntu subsystem and the error is gone.

--

--

Wangyj
Wangyj

Written by Wangyj

A technophile who likes Remote sensing and AI.

Responses (1)