$ brew tap homebrew/services

this command worked for me

🌐
Homebrew
docs.brew.sh › Common-Issues
Homebrew Documentation: Common Issues
Running brew update-reset without a repository resets Homebrew and every tap. Errors such as early EOF, index-pack failed or a failed connection to GitHub usually indicate a network, proxy, mirror or filtering problem. Confirm that GitHub and the download host are reachable from the same shell. Check proxy environment variables, VPN software, firewalls and network-monitoring tools. Run brew config and review any configured Git or bottle mirrors. Retry from a stable network before reporting the problem.
🌐
Homebrew
docs.brew.sh › Troubleshooting
Homebrew Documentation: Troubleshooting
If the problem is neither resolved nor already reported, use the issue template in the appropriate repository: ... Include the command, complete error, relevant brew config and brew doctor output and the brew gist-logs URL when available.
Discussions

Unable to use brew services
Output of brew config HOMEBREW_VERSION: 4.3.9-225-g0f120b0 ORIGIN: https://github.com/Homebrew/brew HEAD: 0f120b0837b869e609437adb1508effee8947b93 Last commit: 32 hours ago Core tap JSON: 16 Jul 07... More on github.com
🌐 github.com
3
3
brew doctor/cleanup taps homebrew/core when using API mode
brew doctor output $ brew doctor Please note that these warnings are just used to help the Homebrew maintainers with debugging if you file an issue. If everything you use Homebrew for is working fi... More on github.com
🌐 github.com
3
July 13, 2023
I am trying to install homebrew via mac and I keep getting a fatal error
Update: I think it finally installed. But following instructions from the homebrew site, It advises to update so I did. I got another error: Js-MacBook-Air:~ j*******$ brew update error: Not a valid ref: refs/remotes/origin/master fatal: ambiguous argument 'refs/remotes/origin/master': unknown revision or path not in the working tree. Use '--' to separate paths from revisions, like this: 'git [...] -- [...]' Edit: I ran brew config and this info popped up. HOMEBREW_VERSION: 3.2.10-64-gfd46a17 ORIGIN: https://github.com/Homebrew/brew HEAD: fd46a173fef7a60bd7da5032f2fcde3c0ea0d1c2 Last commit: 2 days ago Core tap ORIGIN: https://github.com/Homebrew/homebrew-core Core tap HEAD: (none) Core tap last commit: never Core tap branch: HEAD HOMEBREW_PREFIX: /usr/local HOMEBREW_CASK_OPTS: [] HOMEBREW_MAKE_JOBS: 4 Homebrew Ruby: 2.6.3 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby CPU: quad-core 64-bit broadwell Clang: 12.0.5 build 1205 Git: 2.30.1 => /Library/Developer/CommandLineTools/usr/bin/git Curl: 7.64.1 => /usr/bin/curl macOS: 11.1-x86_64 CLT: 12.5.0.0.1.1617976050 Xcode: N/A EDIT 2: I ran brew doctor Please note that these warnings are just used to help the Homebrew maintainers with debugging if you file an issue. If everything you use Homebrew for is working fine: please don't worry or file an issue; just ignore this. Thanks! Warning: Homebrew/homebrew-core was not tapped properly! Run: rm -rf "/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core" brew tap homebrew/core Warning: Some taps are not on the default git origin branch and may not receive updates. If this is a surprise to you, check out the default branch with: git -C $(brew --repo homebrew/core) checkout More on reddit.com
🌐 r/homebrew
2
5
September 5, 2021
Started getting errors ~2 days ago
brew doctor output Please note that these warnings are just used to help the Homebrew maintainers with debugging if you file an issue. If everything you use Homebrew for is working fine: please don't worry or file an issue; just ignore t... More on github.com
🌐 github.com
1
November 19, 2024
🌐
GitHub
github.com › orgs › Homebrew › discussions › 5313
Getting Started · Homebrew · Discussion #5313
April 24, 2024 - These open issues may also help: gcc: error in catching C++ exceptions https://github.com/Homebrew/homebrew-core/issues/162714 Do not report this issue: you are running in an unsupported configuration.
🌐
GitHub
github.com › Homebrew › brew › issues › 15674
brew doctor/cleanup taps homebrew/core when using API mode · Issue #15674 · Homebrew/brew
July 13, 2023 - ==> Tapping homebrew/core Cloning into '/opt/homebrew/Library/Taps/homebrew/homebrew-core'... remote: Enumerating objects: 1545603, done. ... Tapped 3 commands and 6757 formulae (7,127 files, 467.2MB). Warning: You have an unnecessary local Core tap! This can cause problems installing up-to-date formulae. Please remove it by running: brew untap homebrew/core
Author   Homebrew
🌐
Reddit
reddit.com › r/homebrew › i am trying to install homebrew via mac and i keep getting a fatal error
r/homebrew on Reddit: I am trying to install homebrew via mac and I keep getting a fatal error
September 5, 2021 -

The Error: fatal: unable to access 'https://github.com/Homebrew/brew/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443

I've tried looking it up and none of the solutions that have been provided has helped. I did get to 45% download before this came up.

==> /usr/bin/sudo /usr/sbin/chown -R j*********:admin /usr/local/Homebrew ==> Downloading and installing Homebrew... HEAD is now at fd46a173f Merge pull request #11969 from Homebrew/dependabot/bundler/Library/Homebrew/sorbet-0.5.9102 ==> Tapping homebrew/core remote: Enumerating objects: 1035322, done. remote: Counting objects: 100% (7/7), done. remote: Compressing objects: 100% (5/5), done. error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54 error: 1164 bytes of body are still expected fetch-pack: unexpected disconnect while reading sideband packet fatal: early EOF fatal: index-pack failed Failed during: git fetch --force origin refs/heads/master:refs/remotes/origin/master

I am not sure if the fact that I am in China is why it's preventing me in installing homebrew. My Mac Version is macOS Big Sur 11.1

Update: Issue has been solved by the following command: rm -fr $(brew --repo homebrew/core)

Top answer
1 of 1
1
Update: I think it finally installed. But following instructions from the homebrew site, It advises to update so I did. I got another error: Js-MacBook-Air:~ j*******$ brew update error: Not a valid ref: refs/remotes/origin/master fatal: ambiguous argument 'refs/remotes/origin/master': unknown revision or path not in the working tree. Use '--' to separate paths from revisions, like this: 'git [...] -- [...]' Edit: I ran brew config and this info popped up. HOMEBREW_VERSION: 3.2.10-64-gfd46a17 ORIGIN: https://github.com/Homebrew/brew HEAD: fd46a173fef7a60bd7da5032f2fcde3c0ea0d1c2 Last commit: 2 days ago Core tap ORIGIN: https://github.com/Homebrew/homebrew-core Core tap HEAD: (none) Core tap last commit: never Core tap branch: HEAD HOMEBREW_PREFIX: /usr/local HOMEBREW_CASK_OPTS: [] HOMEBREW_MAKE_JOBS: 4 Homebrew Ruby: 2.6.3 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby CPU: quad-core 64-bit broadwell Clang: 12.0.5 build 1205 Git: 2.30.1 => /Library/Developer/CommandLineTools/usr/bin/git Curl: 7.64.1 => /usr/bin/curl macOS: 11.1-x86_64 CLT: 12.5.0.0.1.1617976050 Xcode: N/A EDIT 2: I ran brew doctor Please note that these warnings are just used to help the Homebrew maintainers with debugging if you file an issue. If everything you use Homebrew for is working fine: please don't worry or file an issue; just ignore this. Thanks! Warning: Homebrew/homebrew-core was not tapped properly! Run: rm -rf "/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core" brew tap homebrew/core Warning: Some taps are not on the default git origin branch and may not receive updates. If this is a surprise to you, check out the default branch with: git -C $(brew --repo homebrew/core) checkout
Find elsewhere
🌐
GitHub
github.com › Homebrew › brew › issues
Issues · Homebrew/brew
August 8, 2024 - You can’t perform that action at this time.
Author   Homebrew
🌐
GitHub
github.com › Homebrew › brew › issues › 18790
Started getting errors ~2 days ago · Issue #18790 · Homebrew/brew
November 19, 2024 - This issue's title and/or description do not reference a single formula e.g. brew install wget. If they do, open an issue at https://github.com/Homebrew/homebrew-core/issues/new/choose instead.
Author   Homebrew
🌐
GitHub
github.com › orgs › Homebrew › discussions › 5566
Brew Errorring out · Homebrew · Discussion #5566
August 22, 2024 - It is expected behaviour that some formulae will fail to build in this old version. It is expected behaviour that Homebrew will be buggy and slow. Do not create any issues about this on Homebrew's GitHub repositories.
🌐
GitHub
github.com › Homebrew › brew › issues › 17363
WTF! · Issue #17363 · Homebrew/brew
May 25, 2024 - This issue's title and/or description do not reference a single formula e.g. brew install wget. If they do, open an issue at https://github.com/Homebrew/homebrew-core/issues/new/choose instead.
Author   Homebrew
🌐
Apple Community
discussions.apple.com › thread › 253961400
Can't update or upgrade Homebrew - Apple Community
June 10, 2022 - cd /usr/local/Homebrew/Library/Taps/homebrew/ rm -rf homebrew-core git clone https://github.com/Homebrew/homebrew-core.git · Failing that, try deleting the contents of /usr/local/Homebrew entirely, and re-downloading Homebrew, and testing again. If you’ve gone through all that, check with the folks that support Homebrew. This is their app, and they know it best.
🌐
GitHub
github.com › Homebrew › brew › issues › 22607
Preliminary support for macOS 27 · Issue #22607 · Homebrew/brew
June 8, 2026 - This issue's title and/or description do not reference a single formula e.g. brew install wget. If they do, open an issue at https://github.com/Homebrew/homebrew-core/issues/new/choose instead.
Author   Homebrew
🌐
Homebrew
docs.brew.sh › Common-Issues-for-Core-Contributors
Common Issues for Maintainers — Homebrew Documentation
This is a page for maintainers to diagnose certain build errors. ... Download and extract the bottle artifact. brew pr-upload --no-commit in the bottle directory. ... git reset --hard <SHA> in homebrew/core to reset to the commit before all the commits created by brew pr-pull.
🌐
GitHub
github.com › Homebrew › brew › issues › 4560
Please report this bug: https://git.io/brew-troubleshooting · Issue #4560 · Homebrew/brew
July 26, 2018 - ran a brew command and reproduced the problem with multiple formulae? If it's a problem with a single, official formula (not cask) please file this issue at Homebrew/homebrew-core: https://github.com/Homebrew/homebrew-core/issues/new/choose.
Author   Homebrew
🌐
GitHub
github.com › orgs › Homebrew › discussions › 4743
Where to submit bugs for issues that are not brew specific issues??? · Homebrew · Discussion #4743
Output of brew config N/A Output of brew doctor N/A Description of issue I found a bug on website that fails to render a picture in documentation despite the src link being valid. How am i supposed...
🌐
Osgeo
osgeo.github.io › homebrew-osgeo4mac › docs › reporting-issues
Reporting issues - Homebrew OSGeo4mac Docs
Make sure you issue is specific to this tap and it’s not part of other formula or dependency part of core, cask or other tap. If your problem hasn’t been solved or reported, then create an issue: ... If you had a formula-related problem: run brew gist-logs <formula> (where <formula> is ...
🌐
GitHub
github.com › Homebrew › brew › issues › 16709
Running "brew uses" gives error · Issue #16709 · Homebrew/brew
February 20, 2024 - This issue's title and/or description do not reference a single formula e.g. brew install wget. If they do, open an issue at https://github.com/Homebrew/homebrew-core/issues/new/choose instead.
Author   Homebrew