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
Command "brew update" shows "/dev/stdin: No such file or directory - /tmp/sh-thd-2853475760 (deleted) (Errno::ENOENT)" #17008
Comments
How are you running this? SSH? |
Steps to reproduce:
Same happens if I
It worked before but just failed recently |
@azhongzl Can you reproduce on any other hosts or Linux machines? How long has this been happening? What user are you running as? |
It worked before but just started to fail yesterday
I run with my own user but should have every permissions. |
Sounds like something weird is happening with the way your system interacts with herestrings. I'm guessing changing brew/Library/Homebrew/utils/lock.sh Lines 50 to 52 in f0e442d
to be |
Thanks @Bo98. So the issue is caused by using an old version of ruby.
brew/Library/Homebrew/utils/lock.sh Line 42 in f0e442d
In my env,
The one on the path is latest
Run with old ruby, there are errors:
Run with latest ruby, no issues:
Can brew code use the default ruby on path instead of hardcoding? |
Maybe, though ideally we'd fix 2.0 otherwise we would need to bump the 1.8.7 requirement (though the requirement check itself is broken which is not good). There's perhaps also an argument of hoisting the brew/Library/Homebrew/utils/lock.sh Lines 56 to 58 in f0e442d
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
install
oruninstall
script?brew config
andbrew doctor
and included their output with your issue? If you couldn't install: provided your OS version with the output of your issue?What you were trying to do (and why)
I am trying to run
brew update
to update brew.What happened (include command output)
Run below command
Command output
What you expected to happen
Brew updates successfully without error like
/dev/stdin: No such file or directory - /tmp/sh-thd-2853451899 (deleted) (Errno::ENOENT)
Step-by-step reproduction instructions (by running
brew
commands)The text was updated successfully, but these errors were encountered: