WSL icon indicating copy to clipboard operation
WSL copied to clipboard

WSL failed to start after update Windows

Open merkuriy opened this issue 6 years ago • 22 comments

  • Windows build number: Microsoft Windows [Version 10.0.19041.113]

  • What you're doing and what's happening: Run: PS C:\> wsl -d ubuntu-19-04-server Freezes in an attempt to launch and nothing happens.

  • What's wrong / what should be happening instead: Distro should launched and worked.

  • Detailed logs lxcore__.etl.zip

merkuriy avatar Mar 01 '20 19:03 merkuriy

Tried to enable and disable optional components Windows for WSL:

  • Disable
dism.exe /online /disable-feature /featurename:Microsoft-Windows-Subsystem-Linux /norestart
dism.exe /online /disable-feature /featurename:VirtualMachinePlatform /norestart
  • Restart machine

  • Enable

dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
  • Restart machine

  • List WSL Distros:

PS C:\>  wsl -l --all

Распределения подсистемы Windows для Linux: ubuntu-19-04-server (по умолчанию)

  • Run Distro:
PS C:\> wsl -d ubuntu-19-04-server

Similar. Freezes in an attempt to launch and nothing happens.

merkuriy avatar Mar 01 '20 19:03 merkuriy

Hello, I have the exact same problem with the same Windows version (Version 10.0.19041.113) I'd like to add that after some time (about 15 to 25 minutes) it shows the message:

The operation could not be started because a required feature is not installed. [process exited with code 4294967295]

This happened after an update 10 2004 (20H1) KB4540409 (Comulative update for Windows 10 Version 2004 for x64 based systems)

EDIT: I guess it was some configurations of Hyper-V that changed with the update. Following this post https://www.surfacetablethelp.com/2018/10/fix-hyper-v-not-working-after-windows-10-v1809-upgraded.html fixed my problem.

darkmacheken avatar Mar 01 '20 22:03 darkmacheken

Thanks, @pedrodaniel10 ! The solution you found helped me too.

merkuriy avatar Mar 02 '20 07:03 merkuriy

Hello, I have the exact same problem with the same Windows version (Version 10.0.19041.113) I'd like to add that after some time (about 15 to 25 minutes) it shows the message:

The operation could not be started because a required feature is not installed. [process exited with code 4294967295]

This happened after an update 10 2004 (20H1) KB4540409 (Comulative update for Windows 10 Version 2004 for x64 based systems)

EDIT: I guess it was some configurations of Hyper-V that changed with the update. Following this post https://www.surfacetablethelp.com/2018/10/fix-hyper-v-not-working-after-windows-10-v1809-upgraded.html fixed my problem.

Thank you! I fixed my problem.

davidwudv avatar Mar 19 '20 03:03 davidwudv

This did not work for me but it's a bit different,

WSL starts fine and MS Store Unbuntu 18.04.4 LTS runs fine. Yet Ubuntu 20.04 returns:

The system cannot find the file specified. [process exited with code 4294967295]

ThomasMConnors avatar Apr 24 '20 18:04 ThomasMConnors

@ThomasMConnors what does wsl.exe -l -v show?

onomatopellan avatar Apr 24 '20 19:04 onomatopellan

It shows

C:\temp>wsl.exe -l --all Windows Subsystem for Linux Distributions: Ubuntu (Default) Ubuntu-20.04

(There was no -v option for wsl)

ThomasMConnors avatar Apr 24 '20 19:04 ThomasMConnors

@ThomasMConnors Thanks. Then it seems you are still in WSL1 and this thread's issue is more about WSL2 and hyper-v. In WSL1 that message could mean the Ubuntu 20.04 app is not installed in C: See https://docs.microsoft.com/en-us/windows/wsl/install-win10#troubleshooting

onomatopellan avatar Apr 24 '20 21:04 onomatopellan

After windows 10 2004 update wsl is not working the commands also not working

VishnuSuresh2000 avatar May 28 '20 06:05 VishnuSuresh2000

After windows 10 2004 update wsl is not working the commands also not working

Same here, no matter which distro I chose to start on Windows 10 2004, I got a [process exited with code 4294967295]

PS C:\Users\username> wsl -l -v
  NAME            STATE           VERSION
* Ubuntu-20.04    Stopped         2
  Ubuntu          Stopped         2
  Ubuntu-18.04    Stopped         2

Tried steps in https://www.surfacetablethelp.com/2018/10/fix-hyper-v-not-working-after-windows-10-v1809-upgraded.html, but nothing happened.

leizhilong avatar May 31 '20 00:05 leizhilong

@leizhilong Try this https://github.com/microsoft/WSL/issues/4929#issuecomment-636419019

onomatopellan avatar May 31 '20 19:05 onomatopellan

@leizhilong Try this #4929 (comment)

Thanks @onomatopellan for the clue. I tried the method metioned in the comment. Unluckily, my attempt to remove the Hyper-V virtual eth adapter end up with the same 4294967295 error code. I guess errors with 0xffffffff and 4294967295 might be due to differenet causes.

When I use wsl -d Ubuntu to run WSL after deleting virtual adapter and reboot, the Hyper-V virtual eth adapter would appear again but WSL still dosen't work.

Thanks anyway.

leizhilong avatar Jun 01 '20 14:06 leizhilong

netsh winsock reset saved my day.

see: https://github.com/microsoft/WSL/issues/5092#issuecomment-615545141

leizhilong avatar Jun 01 '20 14:06 leizhilong

After windows 10 2004 update wsl is not working the commands also not working

Same here, no matter which distro I chose to start on Windows 10 2004, I got a [process exited with code 4294967295]

PS C:\Users\username> wsl -l -v
  NAME            STATE           VERSION
* Ubuntu-20.04    Stopped         2
  Ubuntu          Stopped         2
  Ubuntu-18.04    Stopped         2

Tried steps in https://www.surfacetablethelp.com/2018/10/fix-hyper-v-not-working-after-windows-10-v1809-upgraded.html, but nothing happened.

This problem was solved by reinstalling windows features

Hyper-V, Windows subsystem from Linux, Virtual machine platform

VishnuSuresh2000 avatar Jun 01 '20 14:06 VishnuSuresh2000

I was able to resolve the problem with the following steps.

  1. Make the above security settings changes.
  2. Update WSL2 kernel

jkugiya avatar Jun 11 '20 13:06 jkugiya

I don't know if it was disabling and re-enabling the features (Microsoft-Windows-Subsystem-Linux, and VirtualMachinePlatform, then rebooting), or running netsh winsock reset and rebooting, which saved me.

DanOlivier avatar Jun 13 '20 14:06 DanOlivier

https://github.com/microsoft/WSL/issues/4904#issuecomment-643883570

forecho avatar Jun 15 '20 03:06 forecho

netsh winsock reset saved my day.

see: #5092 (comment)

Yes it works!

johnymachine avatar Jul 24 '20 13:07 johnymachine

After windows 10 2004 update wsl is not working the commands also not working

Same here, no matter which distro I chose to start on Windows 10 2004, I got a [process exited with code 4294967295]

PS C:\Users\username> wsl -l -v
  NAME            STATE           VERSION
* Ubuntu-20.04    Stopped         2
  Ubuntu          Stopped         2
  Ubuntu-18.04    Stopped         2

Tried steps in https://www.surfacetablethelp.com/2018/10/fix-hyper-v-not-working-after-windows-10-v1809-upgraded.html, but nothing happened.

This problem was solved by reinstalling windows features

Hyper-V, Windows subsystem from Linux, Virtual machine platform

Yes,Maybe Hyper-V has error

jlfsdtc avatar Aug 15 '20 09:08 jlfsdtc

I've spent multiple hours on this problem on a few different occasions and I don't remember the same solution working twice. This usually seems to happen after a Windows Insider update (verified the build version was higher than the minimum), but I had it happen for no reason that I could determine yesterday. After spending almost four hours trying to fix this problem for the third time, the thing that just worked for me was running through the installation steps without uninstalling first WSL or Ubuntu: https://docs.microsoft.com/en-us/windows/wsl/install-win10. This could have worked because it might have applied an update that I wasn't getting, but I have no idea which step fixed if it that's not what happened =\ This is not a technically good answer, but I hope it helps someone else who's reached the end of their patience and felt like they've tried everything too. Note: the other fixes that worked for me before were in this thread, like resetting netsh and fixing Hyper-V.

frankaddelia avatar Sep 22 '20 15:09 frankaddelia