brew: Running brew update results in process hang / freeze
brew doctor output
Your system is ready to brew.
Verification
- My “
brew doctoroutput” above saysYour system is ready to brew.and am still able to reproduce my issue. - I ran
brew updatetwice and am still able to reproduce my issue. - 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.
brew config output
HOMEBREW_VERSION: 3.6.12-22-gd98de74
ORIGIN: https://github.com/Homebrew/brew
HEAD: d98de7438a9d6efb8049d0f1d59109b98f7a1d7b
Last commit: 29 minutes ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 3b2af9221dda2be65b3319f2e066875de4c7b734
Core tap last commit: 2 weeks ago
Core tap branch: master
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 8
Homebrew Ruby: 2.6.10 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: octa-core 64-bit arm_firestorm_icestorm
Clang: 14.0.0 build 1400
Git: 2.38.1 => /opt/homebrew/bin/git
Curl: 7.84.0 => /usr/bin/curl
macOS: 13.0.1-arm64
CLT: 14.1.0.0.1.1666437224
Xcode: 14.1
Rosetta 2: false
What were you trying to do (and why)?
I was trying to update brew with brew update
What happened (include all command output)?
While trying to run brew update, the system hanged.
I then ran brew update -d to run in debug mode and noticed that it hung on the following logs:
rm -f /opt/homebrew/.git/TMP_FETCH_FAILURES
What did you expect to happen?
I expected brew to update
Step-by-step reproduction instructions (by running brew commands)
> brew update
> brew update -d
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 4
- Comments: 16 (5 by maintainers)
Getting the same issue. Running brew update just hangs (5 mins at least). Ran Brew update-reset also had a hang when Fetching /opt/homebrew/Library/Taps/homebrew/homebrew-core… but it did (after several mins resolve and proceed normally. Tested network connections between my local computer and host and am able to connect @ 1.1Gbps with no packet loss. Could still be on GitHub side but just thought I’d share my experience. Snippet of the update-reset below with the slow step bolded.
Running
brew update-resetbeforebrew updatefixed this for me.For issues with initial installs, refer to https://github.com/orgs/Homebrew/discussions/666. Initial install does take several minutes and we’re aware some networking setups (ISPs, proxies, etc.) have issues with git fetches that take that length of time (e.g. Virgin Media).
This issue is mostly about
brew updatebeing suddenly being slow on existing previously-working installs (where it should take a few seconds), which is an issue I’ve seen less today so it might be fixed.Running into this issue as well on an initial fresh install, with no indication of how to fix.
brew update-resetdoes not finish successfully either:Connection speeds seem fine:
…it just always fails.
Same issue here, but
brew update-resetis hanging on homebrew-core for me too…