Skip to content
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

Error: Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core failed! #30917

Closed
ghost opened this issue Aug 9, 2018 · 7 comments
Closed
Labels
needs response Needs a response from the issue/PR author outdated PR was locked due to age

Comments

@ghost
Copy link

ghost commented Aug 9, 2018

I'm trying to install Homebrew on Mac ios version 10.13.5 , and here is the error information:

HEAD is now at 7ed3be53 Merge pull request #4642 from mistydemeo/mac_sdk_path_teerror: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
Error: Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core failed!
Updated 1 tap (miktex/miktex).
==> Cleaning up /Library/Caches/Homebrew...
==> Migrating /Library/Caches/Homebrew to /Users/song/Library/Caches/Homebrew...
==> Deleting /Library/Caches/Homebrew...
==> Updated Formulae
miktex/miktex/miktex ✔
Error: Calling 'depends_on ... => :run' is disabled!
There is no replacement.
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gobject-introspection.rb:14:in `<class:GobjectIntrospection>'
Please report this to the homebrew/core tap!
Or, even better, submit a PR to fix it!
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
  https://github.com/Homebrew/homebrew-core/issues
Failed during: /usr/local/bin/brew update --force

When I run brew doctor, there is the same error

Error: Calling 'depends_on ... => :run' is disabled! There is no replacement. /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gobject-introspection.rb:14:in class:GobjectIntrospection'`

@SMillerDev
Copy link
Member

This was removed in March, I think you need to reset your homebrew-core tap to the latest version. You can do this by running brew update-reset.

@ghost
Copy link
Author

ghost commented Aug 9, 2018

I have tried the brew update-reset
Still, it doesn't work, the information is as follow:

`==> Fetching /usr/local/Homebrew...

==> Resetting /usr/local/Homebrew...
Branch 'master' set up to track remote branch 'master' from 'origin'.
Switched to and reset branch 'master'

==> Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core...
remote: Counting objects: 122745, done.
remote: Compressing objects: 100% (34895/34895), done.
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

==> Resetting /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core...
Branch 'master' set up to track remote branch 'master' from 'origin'.
Reset branch 'master'
Your branch is up to date with 'origin/master'.

==> Fetching /usr/local/Homebrew/Library/Taps/miktex/homebrew-miktex...

==> Resetting /usr/local/Homebrew/Library/Taps/miktex/homebrew-miktex...
Branch 'master' set up to track remote branch 'master' from 'origin'.
Reset branch 'master'
Your branch is up to date with 'origin/master'.`

@SMillerDev
Copy link
Member

This seems to be an issue with your connection, could you try the git config from this stackoverflow answer: https://stackoverflow.com/a/38703069?

@ghost
Copy link
Author

ghost commented Aug 9, 2018

I have tried the

git config --global http.postBuffer 524288000

but still the error occurs

@SMillerDev
Copy link
Member

Is there any way you can try this with a different internet connection? Because it doesn't seem to be stable enough to update brew.

@DomT4 DomT4 added the needs response Needs a response from the issue/PR author label Aug 12, 2018
@tocaata
Copy link

tocaata commented Aug 13, 2018

@xiaoyu1201 you can use tsinghua mirror. Go to https://mirrors.tuna.tsinghua.edu.cn/help/homebrew/.
But this issue still exists with this mirror. Follow this steps to fix it.
git clone https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git.
copy the directory homebrew-core to /usr/local/Homebrew/Library/Taps/homebrew/.

@DomT4
Copy link
Member

DomT4 commented Aug 23, 2018

Let us know if any further help is required here, but closing for now.

@DomT4 DomT4 closed this as completed Aug 23, 2018
@lock lock bot added the outdated PR was locked due to age label Sep 22, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Sep 22, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs response Needs a response from the issue/PR author outdated PR was locked due to age
Projects
None yet
Development

No branches or pull requests

3 participants