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.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Wangyj
Wangyj

Written by Wangyj

A technophile who likes Remote sensing and AI.

Responses (1)

Write a response