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
New install: /usr/bin/bash: Exit 126. Failed to run '/usr/bin/bash': No such file or directory #1661
Comments
Please check your antivirus log. And also the OS event viewer looking for filesystem failures. Maybe your HDD/SSD is failing. |
Nothing to do with that |
怎么解决呢?答主有解决方法了吗 |
The same here. |
Same Avast antivirus put my bash file into quarantine. Thank you |
Same here! But luckily, I checked de quarantine files from Avast, and there was my Bash file. So I re-established the file, with an exception from the antivirus console, and it's working just fine! :) |
Thank You So Much!! |
So, the cause of this issue is antivirus software. Can this issue be closed now? |
Exactly. |
Yeah, I had the same issue with mine. AVG put it in quarantine. I restored it and added it as an exception. |
I try to remove my original installation folder and reinstall in a different folder. It works. |
My opinion on the take is that, you should uninstall Avast as the free version would not benefit you more than the default Anti-virus system " windows protection ", though if there is a segnificant need to keep it. Steps:
You can now Retry the installation and it should work as intended and setup will be done properly. Note if it did not fix the issue on the first time, locate your msys64 folder, should be under your C:// drive as a folder open the folder and locate No need to disable the Virus protection. Best of luck! |
Might be similar to #1491 - but different from there, this is about a new install on 64-bit Windows 7 Professional.
I just downloaded the latest installer, http://repo.msys2.org/distrib/x86_64/msys2-x86_64-20190524.exe and run it. After the installer completes, I choose "Run MSYS2 now". As soon as the terminal opens, I am greeted with the message:
I close the terminal, reopen MSYS2 MSYS terminal, the same happens.
Tried to uninstall, reinstall - same happens.
Strange thing is, the folder exists - but indeed, there is no
bash.exe
there:I'm kind of puzzled, since I've installed MSYS2 at least some 10 times in the past year, and never experienced this problem?! Is there a workaround for something like this?
EDIT: Just tried an earlier version of the installer, http://repo.msys2.org/distrib/x86_64/msys2-x86_64-20190523.exe - and that one does install with
bash.exe
, but at first run after installation, it says:However, this is not much, as the very first
pacman -Syu
update cannot complete:EDIT: just tried an even earlier installer - http://repo.msys2.org/distrib/x86_64/msys2-x86_64-20181211.exe ; on the surface, it installs fine - except that it gives me
#
as prompt (number/hash sign), not$
as usual (dollar sign) - and the firstpacman -Syu
update passes; but as soon as I reopen terminal, and try to runpacman -Syu
again, it fails the same as it did previously:Uninstalled this version - but now I can see C:\msys64 folder is still present, and when I double-click it to enter it in explorer, I'm told:
The text was updated successfully, but these errors were encountered: