79650941

Date: 2025-06-03 09:13:48
Score: 2
Natty:
Report link

Error: Could not fork child process: There are no available terminals (-1). I face the same problem after I run pacman -Syu and update the msys2-runtime-devel msys2-runtime from 3.6.1-4 to 3.6.2-1 on Windows 11. I tried all the suggestions from here, but problem still there even after many reboots! Finally, I notice that my git bash always opens successfully, and I use Process Explorer to find the difference is msys-2.0.dll which is include in msys2-runtime. So I downgrade msys2-runtime to 3.6.1-4, problem solved.

  1. Since bash still work, open Windows cmd to launch bash.
set "MSYSTEM=MINGW64"
set "CHERE_INVOKING=1"
set "MSYS2_PATH_TYPE=inherit"
C:\MSYS2\usr\bin\bash.exe --login -i
  1. Then downgrade msys2-runtime.
cd /var/cache/pacman/pkg/
pacman -U ./msys2-runtime-devel-3.6.1-4-x86_64.pkg.tar.zst ./msys2-runtime-3.6.1-4-x86_64.pkg.tar.zst

Now, problem solved!

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): I face the same problem
  • Low reputation (0.5):
Posted by: Cong Yang