Linux – Win 10 WSL not work after UPDATE

windows 10windows-insiderwindows-subsystem-for-linux

I have join in win 10 insider preview, today the system update to version 2004 build 19555.1001, then I cannot open WSL. Followings are results in CMD.

Microsoft Windows [Version 10.0.19555.1001]
(c) 2020 Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>bash
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.

C:\WINDOWS\system32>wsl
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.

C:\WINDOWS\system32>ubuntu
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.

C:\WINDOWS\system32>

Best Answer

  • Refer to WSL/issues/4860 (thanks @Biswapriyo)

    This problem appears with 3 conditions

    1. System build 19555.1001 (origin issue WSL/issues/4860)
    2. WSL2 (comment1, comment2)
    3. $Env:Path.length(%PATH%) too long (comment3)

    Accordingly there are 3 solutions

    1. Roll back Win10 (comment4)
    2. Switch to WSL1 (comment2, not recommend)
    3. Reduce $Env:Path.length, for me 2k+ → 1058 works.

    Absolutely it will be solved in future build, but there are different answer about build 19559, this comment said that it is not solved and @Ramhound said his WSL work without an issue.