Kashan
Kashan

Reputation: 171

Error upgrading to WSL 2 : There are no more endpoints available from the endpoint mapper

There was no problem with WSL1. I wanted to upgrade to WSL 2.

Command line fails when I try to upgrade to wsl2. I tried to remove Ubuntu and reinstall it, no difference.

Virtual Machine Platform is active.

Windows build number: 19041.208

wsl --set-version Ubuntu 2

The output:

PS C:\WINDOWS\system32> wsl --set-version Ubuntu 2
Conversion in progress, this may take a few minutes...
For information on key differences with WSL 2 please visit https://aka.ms/wsl2
There are no more endpoints available from the endpoint mapper.

I tried to remove the ubuntu and run the following command first:

wsl --set-default-version 2

after installing ubuntu again it keeps stuck on:

Installing, this may take a few minutes...

when I CTRL+C and relaunch it again it gives me this error:

WslRegisterDistribution failed with error: 0x8000000d An illegal state change was requested.

I don't know what to do now. Any help is highly appreciated.

Upvotes: 10

Views: 12805

Answers (5)

JuanDavidGuerra
JuanDavidGuerra

Reputation: 1

in my case Windows 11: win + R -> services.msc Host Network Service -> Automatic and Start

enter image description here

Upvotes: 0

tykoon
tykoon

Reputation: 151

This is issue is being by caused ICS being disabled. ICS is used by the Host Network Service (HNS) to create a virtual network which WSL 2 relies on for NAT, DNS, DHCP, and host connection sharing.

To solve the issue, Go to services, then:

  1. Restart Host Network Service
  2. Restart LxssManager
  • LSSXManager manages the Windows Subsystem for Linux kernel mode driver (lxss.sys). The kernel mode driver provides the core functionality needed to translate Linux system calls to Windows system calls.

You can read more from microsoft's troubleshooting guidelines: https://learn.microsoft.com/en-us/windows/wsl/troubleshooting

Upvotes: 2

Ramon
Ramon

Reputation: 101

I had the same problem and uninstall/ install Windows Subsystem Linux Update works well.

Step 1: Add or remove programs

Search "Linux"

Uninstall

enter image description here

Step 2:

install WSL again

Then wsl -l works again.

Upvotes: 0

Dude0001
Dude0001

Reputation: 3450

I was getting the original error from the post

WslRegisterDistribution failed with error: 0x800706d9
Error: 0x800706d9 There are no more endpoints available from the endpoint mapper.

What ended up being the issue for me was the Host Network Service was not running. I set it to run automatically and started it up. I was then able to launch Ubuntu and set it as the default in WSL 2.

Upvotes: 13

Ameen Ame
Ameen Ame

Reputation: 1

Sometimes shows this because wsl 2 is already installed and set to version 2.

Upvotes: 0

Related Questions