WSL icon indicating copy to clipboard operation
WSL copied to clipboard

WslRegisterDistribution failed with error: 0x8037010d

Open HaoKunT opened this issue 5 years ago • 5 comments

Environment

Microsoft Windows [version 10.0.18363.1198] I don't known the distribution version because it error when it is installing. It should be WSL 2

Windows build number: [run `cmd.exe /c ver`]
Your Distribution version: [On Debian or Ubuntu run `lsb_release -r` in WSL]
Whether the issue is on WSL 2 and/or WSL 1: [run `cat /proc/version` in WSL]

Steps to reproduce

I enable the Windows subsystem Linux image follow the steps with this. When I install the Ubuntu 20.04, when I start it , it return this error:

Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x8037010d
Error: 0x8037010d ?????? JSON ?????

Press any key to continue...

image

I try another distribution like Ubuntu 18.04, it also failed. The same problem.

It seems a json invalid, but I don't known which json file invalid.

I try to uninstall wsl and reinstall it, but it also failed!

WSL logs:

Expected behavior

It can be installed correctly.

Actual behavior

It failed!

HaoKunT avatar Dec 06 '20 16:12 HaoKunT

It's ok now. I enabled the Virtual Machine Platform feature, it's ok now. But there is still something confuse me because I remember I enabled it before. I run this command

dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

HaoKunT avatar Dec 06 '20 17:12 HaoKunT

I got the same problem, and resolution was to remove Bridge network config from c:\Users\<myUser>\.wslconfig file. Setup: Windows 10 22h2, WSL 2.0

Quadre avatar Dec 28 '22 15:12 Quadre

I'm using Windows 11 and got the same issue. But there is no .wslconfig in my files :-s

Im-ashkan avatar Mar 02 '23 16:03 Im-ashkan

Had this on W10/WSL2 after a forced update from MF$. No bridged networks, no config. Solved by removing WSL and Virtual Machine Platform, REBOOTING, then adding both back and rebooting again. VM virtual drive survives thru this process.

hiiamboris avatar Jul 27 '23 19:07 hiiamboris

I'm using Windows 11 and got the same issue. But there is no .wslconfig in my files :-s

You can make a file named .wslconfig,it's directory is %userprofile%.wslconfig.

qingzheng-web avatar Jun 07 '24 03:06 qingzheng-web