WSL icon indicating copy to clipboard operation
WSL copied to clipboard

WslRegisterDistribution failed with error: 0x80070057

Open finall1008 opened this issue 3 years ago • 30 comments

Windows Version

Microsoft Windows [Version 10.0.25905.1000]

WSL Version

1.2.5.0

Are you using WSL 1 or WSL 2?

  • [X] WSL 2
  • [ ] WSL 1

Kernel Version

No response

Distro Version

No response

Other Software

No response

Repro Steps

  1. Install windows 11 canary build 25905 with iso, removing all programs but keeping files
  2. Install wsl with wsl --install

Expected Behavior

WSL installs.

Actual Behavior

Wsl itself and Ubuntu installs. Then ubuntu starts and produce:

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

Diagnostic Logs

No response

finall1008 avatar Jul 13 '23 17:07 finall1008

logs: https://aka.ms/AAljmrd

finall1008 avatar Jul 13 '23 17:07 finall1008

Just hit this same one this morning

After last nights update I encountered an error attempting to launch wsl in any way:

The parameter is incorrect. Error code: Wsl/Service/CreateInstance/CreateVm/E_INVALIDARG

Attempted solutions:

uninstall/reinstall wsl: result: encountered new error WslRegisterDistribution failed with error: 0x80070057 Error: 0x80070057 The parameter is incorrect.

disable/re-enable windows virtualization: result: no impact, error persists

added guiapplications=false to .wslconfig result: no impact, error persists

logs: https://aka.ms/AAljpom

digitalNimbusLabs avatar Jul 13 '23 18:07 digitalNimbusLabs

I also got "Wsl/Service/CreateInstance/CreateVm/E_INVALIDARG" when I try to import my old wsl distribution instead of install.

finall1008 avatar Jul 14 '23 03:07 finall1008

Same problem here.... WSL2 is unusable now :-(

DarkVamp avatar Jul 14 '23 10:07 DarkVamp

Judging by the current issues, WSL is completely inoperable in this version of Windows. In the absence of a way to restore the Windows version, I tried to export the image of the WSL distribution and was unsuccessful. If the problem of WSL operation is difficult to solve, it is hoped that the part of the exported image can be fixed as soon as possible. In this way, some users can restore the working environment by reinstalling the system.

ChuixiongWu avatar Jul 14 '23 11:07 ChuixiongWu

@ChuixiongWu This would help... But I already completely removed my distribution and tried a clean new install without success. This needs to be addressed soon. Until that I need to develop on my MacOS machine.

DarkVamp avatar Jul 14 '23 11:07 DarkVamp

I go back to dev by clean install and installed wsl again by command, and everything works. 😂

finall1008 avatar Jul 14 '23 16:07 finall1008

@finall1008 I really hope the next update will fix it again :-(

DarkVamp avatar Jul 14 '23 19:07 DarkVamp

same os version ... same issue ... same waitting ...

xunziheng avatar Jul 15 '23 13:07 xunziheng

"Appreciate your patience - we've investigated your reports, and believe this should be fixed in the next flight. If WSL is something you use regularly, you may wish to roll back to the previous build until this is fixed"——Official response from Feedback Hub return to wsl1 is a workaround if you use nothing depending on wsl2...... PS: This is a Hyper-V error so anything based on Hyper-V like WSA, Windows Sandbox etc. will also be affected, but there are also reports said that only WSA will be affected

deutschthomas avatar Jul 15 '23 20:07 deutschthomas

The same problem.I can't start any app based wsl,like docker ,linux . win 11 ,Windows Feature Experience Pack 1000.25905.1000.0.

hullhut avatar Jul 16 '23 05:07 hullhut

Same problem: The parameter is incorrect. Error code: Wsl/Service/CreateInstance/CreateVm/E_INVALIDARG Encountered after build 25905 pre-release 230707-1739 installed

oscaleta avatar Jul 16 '23 13:07 oscaleta

Guys, I just found a way to restore a WSL distribution that can't be opened without losing data when it is impossible to roll back the win11 version.

1. First you need to find the location of your distribution, the default location is: C:\Users\way_w\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu22.04LTS_79rhkp1fndgsc\LocalState Note that here my way_w is my username, CanonicalGroupLimited.Ubuntu22.04LTS_79rhkp1fndgsc is my Linux distribution, you need to use your own username and distribution instead. If you change the location of your Linux distribution, you need to find that location.

2. Back up the ext4 file inside the folder.

3. On a computer where WSL is available (you can ask a friend to borrow one or reinstall your current computer to a previous version), install WSL and the distribution you used before. Make sure it is functioning properly.

4. Replace the current file with the previously backed up ext4 file. Open it again and you will find that everything that was lost is inside.

It's a simple and straightforward approach, and I didn't expect it to actually work. Previously, because WSL existed as a Windows application, once the system was reinstalled, all data would be lost. Now this method can keep your data.

ChuixiongWu avatar Jul 17 '23 05:07 ChuixiongWu

Experiencing the same issue solution please?

Sen-Gupta avatar Jul 19 '23 09:07 Sen-Gupta

@Sen-Gupta Wait for a fix update like all of us ?

DarkVamp avatar Jul 22 '23 19:07 DarkVamp

Just wanted to leave a comment. Got here via web search. I'm on insider Canary and this has happened to me like 3 times so far. The update to 25905.1000 rs_prerelease breaks my wsl2 i.e. "The parameter is incorrect."

In each case to resume my wsl2 function, I "Go back" -- enter my complaint -- and then check to not get updates for a week LOL. Someday I hope it will be fixed.

10.0.25393 Build 25393 works for what it's worth.

cfaherty avatar Jul 25 '23 01:07 cfaherty

Any update yet? I mean this is such a VITAL CENTRAL part of the OS we need this !!! Hope to see an update really soon that fixes this back to good.

DarkVamp avatar Jul 26 '23 07:07 DarkVamp

@cfaherty you are in a good mood lol, I eagerly wait for the update fix every day. @DarkVamp Not yet.

xunziheng avatar Jul 26 '23 10:07 xunziheng

I'd like to chime in that this is affecting me too. Time to roll back I guess?

sigmondkukla avatar Jul 26 '23 11:07 sigmondkukla

I'd like to chime in that this is affecting me too. Time to roll back I guess?

The fact is that I deleted the old.windows immediately after the upgrade and upgraded the license from the home version to the professional version. I'm not sure if it's safe to roll back.

anyway, the issue not effects me a lot.

xunziheng avatar Jul 27 '23 09:07 xunziheng