Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WSL2 distro not starting since 21364 build #6839

Closed
1 of 2 tasks
jpathy opened this issue Apr 22, 2021 · 43 comments
Closed
1 of 2 tasks

WSL2 distro not starting since 21364 build #6839

jpathy opened this issue Apr 22, 2021 · 43 comments

Comments

@jpathy
Copy link

Windows Build Number

Microsoft Windows [Version 10.0.21364.1]

WSL Version

  • WSL 2
  • WSL 1

Kernel Version

5.10.16

Distro Version

Ubuntu 20.04

Other Software

No response

Repro Steps

Start ubuntu. After the new insider release it doesn't work with following error.

Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x80070057
Error: 0x80070057 The parameter is incorrect.

Press any key to continue...

Expected Behavior

Doesn't work.

Actual Behavior

Should work.

Diagnostic Logs

wsl.zip

@anatol06
Copy link

I have the same issue. After update to Windows 10 Insider Preview Build 21364 WSL does start any more.
In terminal appears "The parameter is incorrect."

@waundme
Copy link

Same issue here. After update to Windows 10 Insider Preview Build 21364 WSL does start any more.

[wsl2]
guiapplications=false

fixes the problem.

@slickag
Copy link

I have enabled wslg and wsl stopped working I have reported this issue to wslg repository
you can fix wsl by adding this to your .wslconfig file
[wsl2]
guiapplications=false

I was having the same issue and this fixed it for me.

Thanks!

@anatol06
Copy link

Same issue here. After update to Windows 10 Insider Preview Build 21364 WSL does start any more.

[wsl2]
guiapplications=false

fixes the problem.

Thanks!
It works now.

@nsaritzky
Copy link

nsaritzky commented Apr 22, 2021

@github348's fix worked for me, too.

For what it's worth, the fix here didn't work for me, nor did any of the other suggestions on that issue. I couldn't install any more distros; they all failed with error 0x80070057.

@arpg0010
Copy link

Same issue here. After update to Windows 10 Insider Preview Build 21364 WSL does start any more.

[wsl2]
guiapplications=false

fixes the problem.

Thank you! Wasted so much time on this...

One more note, as I had to look this up to:
the ".wslconfig" file goes is in your %UserProfile% folder (ie. c:/users/[name] ). The file may not exist, you may have to create it.

@Lei-Lei-alpha
Copy link

I have enabled wslg and wsl stopped working I have reported this issue to wslg repository
you can fix wsl by adding this to your .wslconfig file
[wsl2]
guiapplications=false

Worked for me.

@nwaltham
Copy link

This fix also works for me, although the reason I was trying to install it, was to try out the gui support., so I guess this means I can't

I have enabled wslg and wsl stopped working I have reported this issue to wslg repository
you can fix wsl by adding this to your .wslconfig file
[wsl2]
guiapplications=false

Worked for me.

This fix also works for me, although the reason I was trying to install it, was to try out the gui support., so I guess this means I can't

@adrastogi
Copy link
Collaborator

More details about the underlying cause can be found here and here. A fix is being worked on.

@norberto-enomoto
Copy link

norberto-enomoto commented Apr 24, 2021

I have enabled wslg and wsl stopped working I have reported this issue to wslg repository
you can fix wsl by adding this to your .wslconfig file
[wsl2]
guiapplications=false

Thank you. I have almost lost entired night trying to solve this issue. Now it's up and running.

@guradia
Copy link

On a german Windows Version it's simply Falscher Paramter, on might think it's a different problem, but this fix does the trick.

And it does not hinder any previous settings that let me use gui apps through X410.

Though i just notice, that gitkraken now can display it's icon (rather than the one of X410, that was used before the newest updates). May be unrelated, since i updated the WSL-Kernel as part of finding a solution.

@onomatopellan
Copy link

See reason of why this could happen in microsoft/wslg#33

@benhillis
Copy link
Member

We've identified an issue with some CPUs and a fix is inbound.

@P4R4DiSi4C
Copy link

@benhillis could this be also related to your fix ? MicrosoftDocs/WSL#798

@onomatopellan
Copy link

@P4R4DiSi4C To know if it's related just use this wslconfig option to disable GUI support.
Also remember to run wsl.exe --shutdown to make the changes effective.

@P4R4DiSi4C
Copy link

@P4R4DiSi4C To know if it's related just use this wslconfig option to disable GUI support.
Also remember to run wsl.exe --shutdown to make the changes effective.

Okay, then it's not related thanks :)

@kinglionsz
Copy link

kinglionsz commented Apr 28, 2021

On a german Windows Version it's simply Falscher Paramter, on might think it's a different problem, but this fix does the trick.

And it does not hinder any previous settings that let me use gui apps through X410.

Though i just notice, that gitkraken now can display it's icon (rather than the one of X410, that was used before the newest updates). May be unrelated, since i updated the WSL-Kernel as part of finding a solution.

Yes, it's a good idea👍. wsl2 ver.5.10.16.3 works @win10 ver. 21359, but not work when update 21364!
thunar and gedit icon now can display on taskbar.👍

tks.

Linux DESKTOP-J925CM6 5 10 16 3-microsoft-standard-WSL2 #1 SMP Fri Apr 2 22_23_49 UTC 2021 x86_64 GNU_Linux-win10-21359-x410-gui-ok

@MaximoTrinidad
Copy link

This need more investigation...
I'm suspecting that this whole issue was due to a missing ".wsl2config" file. I'm only wondering this could have work by just creating an empty file could.
Also, we got to be on the lookout with upcoming Windows Insider updates breaking WSL installations.
I have an idea which I'm going to post soon to test this scenario.

For now... creating the ".wsl2config" file with the content:

[wsl2]
guiapplications=false

It Works!!

@MaximoTrinidad
Copy link

MaximoTrinidad commented Apr 29, 2021

Repro Steps
(*** Please do this on a VM ***)

Duplicate the situation, now that I got my WSL to work , I'm went back to delete the config file: ".wslconfig" in the User Profile folder, run cmd "wsl --shutdown". Reboot not necessary.

Start WSL and now I'm back to square one! So, I can't open WSL.

WSLbad_2021-04-29_12-36-33

Then try to recover with the following WSL Settings Options:
I did the "Repair Option", didn't work.
I did the "Reset Option, that didn't work neither.

I did uninstall all distro, remove the WSL Update, uncheck WSL Feature, then Reboot machine

Check back the WSL Feature, Reboot machine, install back the WSL Update then manually create the WSL config file "wslconfig" in your Windows User Profile folder" c:\Users\username" with the following entries:

[wsl2]
guiapplications=false

wslconfig_2021-04-29_12-41-35

Proceed to Download and Install UBUNTU-20.04
Open WSL and it's working again!!

Bottom-line: WSL needs to have the configuration file ".wslconfig" , or it won't start. So, you didn't need to uninstall WSL to get it to work.

WSLOK_2021-04-29_12-33-13

@benhillis
Copy link
Member

This issue is well-understood. Unless something unexpected happens this should be fixed with next week's Insider Dev build.

@andalou
Copy link

andalou commented Apr 29, 2021

The fix mentioned here didn't work for me. After putting
[wsl2]
guiapplications=false

into %userprofile%\.wslconfig I get another error:

{Application Error}
The exception s (0xPress any key to continue...

@MaximoTrinidad
Copy link

@andalou

Did you do open a PowerShell console (as Admin), and ran the command: "wsl --shutdown"?
Then you should try to start wsl again.

@andalou
Copy link

@andalou

Did you do open a PowerShell console (as Admin), and ran the command: "wsl --shutdown"?
Then you should try to start wsl again.

Yes I did it, I get the same message

@andalou
Copy link

@P4R4DiSi4C To know if it's related just use this wslconfig option to disable GUI support.
Also remember to run wsl.exe --shutdown to make the changes effective.

I already did it. I put
[wsl2]
guiapplications=false

into %userprofile%\.wslconfig and I did, as administrator, wsl.exe --shutdown but I get another message, namely:
{Application Error}
The exception s (0xPress any key to continue...

That is 21364.1 build

@MaximoTrinidad
Copy link

@andalou

Please, can you provide a print-screen of the message you're getting?
thx

@andalou
Copy link

@andalou

Please, can you provide a print-screen of the message you're getting?
thx

ubuntu1

@MaximoTrinidad
Copy link

@andalou

That message, I haven't seen it. I ended up with the pain of resetting and reinstalling everything (all components/features) to finally get it to work.

Today I updated my Windows 10 Insider to Build 21370.

This time WSL works! But now fighting with Docker-Desktop(3.3.1), which installs but doesn't work in WSL2.
I hope someone can offer a resolution.

@onomatopellan
Copy link

onomatopellan commented Apr 30, 2021

@MaximoTrinidad I'm running it right now without problem. I had to add guiapplications=false to .wslconfig file before launching Docker Desktop for first time though.

@anatol06
Copy link

anatol06 commented May 1, 2021

@andalou

That message, I haven't seen it. I ended up with the pain of resetting and reinstalling everything (all components/features) to finally get it to work.

Today I updated my Windows 10 Insider to Build 21370.

This time WSL works! But now fighting with Docker-Desktop(3.3.1), which installs but doesn't work in WSL2.
I hope someone can offer a resolution.

My advice regarding Docker is to install it on WSL directly.

@mayurigohil
Copy link

I have enabled wslg and wsl stopped working I have reported this issue to wslg repository
you can fix wsl by adding this to your .wslconfig file
[wsl2]
guiapplications=false

This works for me.

After so many Trials finally Docker is running.

Thanks so much

@gmag11
Copy link

gmag11 commented May 5, 2021

Fixed adding .wslconfig file to %UserProfile%. Thank you

PS C:\WINDOWS\system32> wsl --set-default-version 2
For information on key differences with WSL 2 please visit https://aka.ms/wsl2
The operation completed successfully.
PS C:\WINDOWS\system32> wsl --status;cmd /c ver
Default Distribution: Ubuntu-20.04
Default Version: 2

Windows Subsystem for Linux was last updated on 02/05/2021
WSL automatic updates are on.

Kernel version: 5.10.16

Microsoft Windows [Version 10.0.21370.1]

@kinglionsz
Copy link

Fixed adding .wslconfig file to %UserProfile%. Thank you

PS C:\WINDOWS\system32> wsl --set-default-version 2
For information on key differences with WSL 2 please visit https://aka.ms/wsl2
The operation completed successfully.
PS C:\WINDOWS\system32> wsl --status;cmd /c ver
Default Distribution: Ubuntu-20.04
Default Version: 2

Windows Subsystem for Linux was last updated on 02/05/2021
WSL automatic updates are on.

Kernel version: 5.10.16

Microsoft Windows [Version 10.0.21370.1]

TKS. I will have a try.

@aarav2you
Copy link

I have enabled wslg and wsl stopped working I have reported this issue to wslg repository
you can fix wsl by adding this to your .wslconfig file
[wsl2]
guiapplications=false

This did not do anything for me.. Restarted machine & WSL and reinstalled WSL with the .wslconfig file but it didn't work!

@bpulliam
Copy link
Collaborator

The fix for this issue (not a workaround) is in build 21376.

@kinglionsz
Copy link

kinglionsz commented May 5, 2021

Fixed adding .wslconfig file to %UserProfile%. Thank you

PS C:\WINDOWS\system32> wsl --set-default-version 2
For information on key differences with WSL 2 please visit https://aka.ms/wsl2
The operation completed successfully.
PS C:\WINDOWS\system32> wsl --status;cmd /c ver
Default Distribution: Ubuntu-20.04
Default Version: 2

Windows Subsystem for Linux was last updated on 02/05/2021
WSL automatic updates are on.

Kernel version: 5.10.16

Microsoft Windows [Version 10.0.21370.1]
The parameter is incorrect.

[process exited with code 4294967295]
PS X:\app\tmp\WSL\diagnostics> wsl --status;cmd /c ver
Default Distribution: Kali-linux
Default Version: 2

Windows Subsystem for Linux was last updated on 2021/4/17
WSL automatic updates are on.

Kernel version: 5.10.16

Microsoft Windows [Version 10.0.21370.1]

@bpulliam
Copy link
Collaborator

Build 21376 releases today. We encourage you to turn GUI applications back on, as that should now be fixed (you can remove guiapplications=false from .wslconfig).

@dogansan
Copy link

Build 21376 releases today. We encourage you to turn GUI applications back on, as that should now be fixed (you can remove guiapplications=false from .wslconfig).

Confirmed, GUI is now working

@vuon9
Copy link

Build 21376 releases today. We encourage you to turn GUI applications back on, as that should now be fixed (you can remove guiapplications=false from .wslconfig).

Confirmed, GUI is now working

Can u give me a link or the way to enable GUI?

@dogansan
Copy link

Build 21376 releases today. We encourage you to turn GUI applications back on, as that should now be fixed (you can remove guiapplications=false from .wslconfig).

Confirmed, GUI is now working

Can u give me a link or the way to enable GUI?

https://github.com/microsoft/wslg

@kinglionsz
Copy link

kinglionsz commented May 7, 2021

Confirmed, GUI is now working Update 21376. Tks.

wsl-ok-21376-Screenshot 2021-05-07 123233

@MaximoTrinidad
Copy link

MaximoTrinidad commented May 7, 2021

In my case, after 3hrs installing Windows Insider build 21376, on my old Lenovo T430s, and removing the line:
"guiapplications=false
" on my .wslcinfig file ., I got an error two times:

"Windows SubSystem for Linus was terminated.

I had to use the command in the PowerShell console:

wsl --shutdown

`Then, I was able to enable open WSL2with graphics enabled.

What a ride!

I'm glad this is finally resolved!

WSL2GUI_OK_2021-05-07_8-44-43

@BluCobalt
Copy link

Build 21376 releases today. We encourage you to turn GUI applications back on, as that should now be fixed (you can remove guiapplications=false from .wslconfig).

Works now, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests