Skip to content

WSL2 distro failing to startup with code 4294967295 #5092

Open

Description

  • Your Windows build number: (Type ver at a Windows Command Prompt)
    19609

  • What you're doing and what's happening: (Copy&paste the full set of specific command-line steps necessary to reproduce the behavior, and their output. Include screen shots if that helps demonstrate the problem.)
    Was browsing my Ubuntu WSL2 instance's filesystem using the new File Explorer WSL distro integration

  • What's wrong / what should be happening instead:
    Suddenly, File Explorer could no longer connect to the distro.

image

Then tried connecting to distro via Windows Terminal, but got:

A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
[process exited with code 4294967295]

image

Can no longer access my Ubuntu WSL distro at all.

Activity

  1. therealkenc commented on Apr 15, 2020

    @therealkenc
  2. holazt commented on Apr 18, 2020

    @holazt

    Solve "process exited with code 4294967295" , run netsh winsock reset as Administrator, then reboot your computer.
    The result like below:

    ❯ netsh winsock reset
    
    Sucessfully reset the Winsock Catalog.
    You must restart the computer in order to complete the reset.
    
  3. kaevans commented on Apr 21, 2020

    @kaevans

    Solve "process exited with code 4294967295" , run netsh winsock reset as Administrator, then reboot your computer.
    The result like below:

    ❯ netsh winsock reset
    
    Sucessfully reset the Winsock Catalog.
    You must restart the computer in order to complete the reset.
    

    Does not resolve the issue.

  4. kaevans commented on May 28, 2020

    @kaevans

    I had a customer's VPN client installed on my machine (Cisco AnyConnect VPN), the customer's installation package also installed dnscrypt. Uninstalling this has resolved the issue on my machine, confirming other threads that indicate the issue is usually related to network issues... particularly port 53.

  5. leizhilong commented on Jun 1, 2020

    @leizhilong

    Solve "process exited with code 4294967295" , run netsh winsock reset as Administrator, then reboot your computer.
    The result like below:

    ❯ netsh winsock reset
    
    Sucessfully reset the Winsock Catalog.
    You must restart the computer in order to complete the reset.
    

    works for me, Thanks

  6. larson-carter commented on Jun 11, 2020

    @larson-carter

    I'm having this issue in a variety of situations.

    1.) I'm just working and I close the terminal or ubuntu. Then I'm locked out of it
    2.) I have my computer running for more than 36 hours then it does this? It could be coincidental however it is unlikely. Please not I'm not checking directly at 36 hours. It's just an estimate

    Nothing fixes it. None of the above stuff mentioned has fixed it, neither have any other forum pages.

    The only solution for me is to leave my PC running and every few hours to come back and check to see if it's fixed or still broken.

  7. forecho commented on Jun 15, 2020

    @forecho
  8. larson-carter commented on Jun 15, 2020

    @larson-carter

    蔡正海 (@forecho) That does not fix it.

  9. truealex81 commented on Jun 17, 2020

    @truealex81

    I just tried to open vhdx file in C:\Users\TrueAlex\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu20.04onWindows_79rhkp1fndgsc\LocalState
    and my Ubuntu isn't working anymore :( even after reboot.

  10. KazeZlat commented on Jun 17, 2020

    @KazeZlat

    WSL2 works fine on 19640, but fails with same code on 19645. I already had my WSL2 set up, but this update failed it. Checking for updates on 19645 resulted in nothing, even though release notes mentioned we should get kernel with Windows Update.

    Had to roll back to 19640 for now.

  11. truealex81 commented on Jun 17, 2020

    @truealex81

    I'm solved this with:

    DISM /online /disable-feature /featurename:VirtualMachinePlatform /norestart
    DISM /online /disable-feature /featurename:Microsoft-Windows-Subsystem-Linux /norestart

    Reboot, and then:

    DISM /online /enable-feature /featurename:VirtualMachinePlatform /norestart
    DISM /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /norestart
  12. pedrolamas commented on Jun 29, 2020

    @pedrolamas

    I was seeing the same issue and managed to fix it (at least for now!)

    I opened the Resource Monitor and checked the "Listening Ports" so I could see what processes were using port 53, and found dockerd.exe and svchost.exe.

    As there are too many instances of svchost.exe I used the PID to find the process on Task Manager, right-clicked and selected "Go to Service" and found out that it was "SharedAccess" (ICS).

    At this point I killed dockerd.exe and stopped SharedAccess service (that immediately started again) and that was enough for me to get WSL distro running again!

  13. gerardojbaez commented on Jun 29, 2020

    @gerardojbaez

    Pedro Lamas (@pedrolamas), thanks for posting what worked for you! I don't have Docker for Windows installed (so no dockerd.exe), but managed to work around the "process exited with code 4294967295" by simply stopping SharedAccess as you mentioned.

    I can't believe WSL team is taking so long with this issue, which clearly is happening to many users AND is preventing us from doing our work.

  14. 220 remaining items

  15. 86236291 commented on May 27, 2025

    @86236291

    In my case, the issue was caused by the disk being full where the ext4.vhdx file is stored... 🙃
    So how to fix this problem?🙃🙃

  16. pomazanbohdan commented on May 28, 2025

    @pomazanbohdan

    This error appears when I finish working and close the lid of my laptop at night.
    In the morning I get this error, but I can't continue working without an overload in the IDE
    win11 24

  17. valter-silva-au commented on Jun 24, 2025

    @valter-silva-au

    Here's how to completely remove WSL2 and reinstall it with Ubuntu 24.04 (powered by Perplexity):

    Remove WSL2 Completely

    Step 1: Unregister All Distributions
    First, check what distributions are currently installed and remove them:

    wsl -l -v
    wsl --unregister 
    

    Repeat the unregister command for each distribution shown[1][2].

    Step 2: Uninstall WSL Apps

    • Open Settings > Apps > Apps & Features
    • Search for "Ubuntu", "Linux", or any Linux distribution names and uninstall them
    • Search for "Windows Subsystem for Linux" and uninstall it[5][6]

    Step 3: Disable WSL Features

    • Open Start Menu > Turn Windows Features on or off
    • Uncheck "Windows Subsystem for Linux"
    • Uncheck "Virtual Machine Platform"
    • Click OK and restart your computer[4][5][6]

    Step 4: Clean Residual Files
    Check and delete any remaining WSL-related folders in:

    • C:\Users\\AppData\Local\Packages\ (look for Ubuntu or WSL folders)
    • C:\Program Files\ (look for WSL-related directories)[4]

    Reinstall WSL2 with Ubuntu 24.04

    Step 1: Enable Required Features

    • Open Start Menu > Turn Windows Features on or off
    • Check "Windows Subsystem for Linux"
    • Check "Virtual Machine Platform"
    • Click OK and restart your computer[5][9]

    Step 2: Install WSL2
    Open PowerShell or Command Prompt as Administrator and run:

    wsl --install
    

    This installs the latest version of WSL[7][8].

    Step 3: Set WSL2 as Default

    wsl --set-default-version 2
    

    Step 4: Update WSL

    wsl --update
    

    Step 5: Install Ubuntu 24.04
    Check available distributions first:

    wsl -l -o
    

    Then install Ubuntu 24.04 specifically:

    wsl --install -d Ubuntu-24.04
    

    Step 6: Complete Setup
    When prompted, create a username and password for your Ubuntu installation[3][9][10].

    Verify Installation

    Check that Ubuntu 24.04 is installed and running on WSL2:

    wsl -l -v
    

    You should see Ubuntu-24.04 listed with VERSION 2[8][3].

    To access your Ubuntu installation, simply run:

    wsl -d Ubuntu-24.04
    

    Or launch it from the Start Menu[10].

    This process ensures a clean removal of all WSL components and a fresh installation with only Ubuntu 24.04.

    [1] https://superuser.com/questions/1746522/remove-wsl2-files-after-distro-uninstall-on-windows-11
    [2] https://learn.microsoft.com/en-us/windows/wsl/faq
    [3] https://dev.to/prastha/install-ubuntu-on-wsl-2-3fei
    [4] https://answers.microsoft.com/en-us/windows/forum/all/i-cant-uninstall-wsl-from-windows-11/b884feff-d93f-4e3f-9012-97b87aab3576
    [5] https://www.elevenforum.com/t/uninstall-windows-subsystem-for-linux-wsl-in-windows-11.10802/
    [6] https://gist.github.com/4wk-/889b26043f519259ab60386ca13ba91b
    [7] https://documentation.ubuntu.com/wsl/stable/howto/install-ubuntu-wsl2/
    [8] https://learn.microsoft.com/en-us/windows/wsl/install
    [9] https://www.youtube.com/watch?v=pX4SBoS_5aY
    [10] https://www.youtube.com/watch?v=Cn1DYQwGY8o
    [11] https://learn.microsoft.com/en-us/windows/wsl/install-manual
    [12] https://askubuntu.com/questions/1261664/how-to-uninstall-the-wsl-installation-of-ubuntu-20-04-from-windows-10
    [13] https://unix.stackexchange.com/questions/781583/install-ubuntu-24-04-via-wsl-in-windows-10-from-iso-file-in-a-specific-folder
    [14] #11515
    [15] https://www.reddit.com/r/bashonubuntuonwindows/comments/1e8qw5r/installing_ubuntu_with_wsl2_succeeds_then_wsl/
    [16] https://www.reddit.com/r/WindowsHelp/comments/1ga3olr/how_can_i_completely_uninstall_wsl_and/
    [17] https://www.youtube.com/watch?v=xftSZRA7exc
    [18] https://ubuntu.com/desktop/wsl

  18. ZackALXcodes commented on Mar 19, 2026

    @ZackALXcodes

    Can't you just download a VMware Workstation Player, get a ubuntu disc, make a virtual machine with the ubuntu disc, and work on there?

  19. ec-max commented on Mar 20, 2026

    @ec-max

    Can't you just download a VMware Workstation Player, get a ubuntu disc, make a virtual machine with the ubuntu disc, and work on there?

    From a WSL2 perspective, no. No you can't.

    You are welcome. 😏

  20. aynuayex commented on Apr 19, 2026

    @aynuayex

    here is my chat with gemini that has helped me solve this error
    check it here: https://gemini.google.com/share/886894074e8d

  21. wintercounter commented on Jun 3, 2026

    @wintercounter

    Same started to happen after installing the following Window update: Windows 11 Insider Preview Quality Update (26300.8493)

  22. irfandyj commented on Jun 11, 2026

    @irfandyj

    Guys, I just restarted my laptop without doing any commands and it works.

    Was it simply because of that? Would the above comments fix things up once and for all or was it the restart that actually matters?

  23. jeremie-durand commented on Aug 6, 2026

    @jeremie-durand

    I fixed it only by restarting my computer. Will see if it comes back.

  24. etshy commented on Sep 1, 2026

    @etshy

    I'm having this issue randomly too.
    Each time I have it, if I still have a terminal running on WSL, to avoid restarting WSL or rebooting I run the following commands to free/compact caches.

    echo 3 | sudo tee /proc/sys/vm/drop_caches
    echo 1 | sudo tee /proc/sys/vm/compact_memory

    It works everytime but you have to keep a running terminal inside WSL.

  25. LHozzan commented on Sep 30, 2026

    @LHozzan

    Today morning I working fine (all my tools are Linux based, so in Windows I using mostly Outlook only, but company have M$ infrastructure ...), I go to meeting and after meeting I discovered, that all my opened terminals have same catastrophic error message ...

    After half wasted day my colleagues give me a hint for downgrading and this hint helped me.
    Upgraded WSL version 3.0.1.0 not working, but previous version 2.7.14.0 is working fine (I just downloaded the older version and only runned installation for downgrading).

    Well, nice advertisement for Linux world from billion dollars company ... The problem exist 6 years !!! I not have words ...

  26. pedromundo commented on Sep 30, 2026

    @pedromundo

    Well, nice advertisement for Linux world from billion dollars company ... The problem exist 6 years !!! I not have words ...

    You mean trillions :)

  27. ec-max commented on Sep 30, 2026

    @ec-max

    Today morning I working fine (all my tools are Linux based, so in Windows I using mostly Outlook only, but company have M$ infrastructure ...), I go to meeting and after meeting I discovered, that all my opened terminals have same catastrophic error message ...

    After half wasted day my colleagues give me a hint for downgrading and this hint helped me.
    Upgraded WSL version 3.0.1.0 not working, but previous version 2.7.14.0 is working fine (I just downloaded the older version and only runned installation for downgrading).

    Well, nice advertisement for Linux world from billion dollars company ... The problem exist 6 years !!! I not have words ...

    It's a generic message caused by lots of things. To equate your recent problem to one reported 6 years ago is a logical fallacy.

  28. LHozzan commented on Sep 30, 2026

    @LHozzan

    It's a generic message caused by lots of things. To equate your recent problem to one reported 6 years ago is a logical fallacy.

    Can you please share, how can I differ problem with error code 4294967295 with problem with error code 4294967295 after 6 years of collecting workarounds?

    But first I am curious, why this generic message exist after 6 years of developing? I know, that developers are also only humans, but instead of generate common error message "something goes somewhere wrong, sorry, try to restart", generating something more meaningful for users, or generate some dump, which can be possible to upload somewhere as a material for investigation ...

    Yop, offtopic. Lets focusing to solution, not for workarounds (downgrade is only workaround, because updating to problematic version can occurring anytime)!

  29. Mustafafathi commented on Nov 10, 2026

    @Mustafafathi

    S C:\Users\Dev> wsl --shutdown

    PS C:\Users\Dev> wsl --install --web-download -d Ubuntu-22.04

    Downloading: Ubuntu 22.04 LTS

    Installing: Ubuntu 22.04 LTS

    Distribution successfully installed. It can be launched via 'wsl.exe -d Ubuntu-22.04'

    Launching Ubuntu-22.04...

    Provisioning the new WSL instance Ubuntu-22.04

    This might take a while...

    Create a default Unix user account:

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-investigation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions