There are two solutions:
Solution 1:
(solved through method 1)
Update brew directly
brew update method 2:
(the experiment in method 2 failed)
modify the environment variable:
brew config # Find
## Find:
HOMEBREW_BOTTLE_DOMAIN:https://mirrors.ustc.edu.cn/homebrew-bottles
echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles/bottles' >> ~/.zshrc
source ~/.zshrc
echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles/bottles' >> ~/.zprofile
source ~/.zprofile
Read More:
- [Solved] Git push Warning: error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413
- [Solved] Git push error: error: RPC failed; HTTP 413 curl 22 the requested URL returned error: 413
- The requested URL returned error: 403 [How to Solve]
- fatal: unable to access”: The requested URL returned error: 500
- [step on the pit] idea submits the code to GitHub and prompts 403 — the requested URL returned error: 403
- [Solved] idea git Update failed unable to access ‘httpxxx‘ The requested URL returned error: 500
- [Solved] Mac M1 Brew install Error: Command failed with exit 128:git
- MAC: Brew upgrade Error [How to Fix]
- [Solved] New MAC Unity Develop Error: error installing cocoapods
- How to Solve brew ERROR in `initialize‘: Version value must be a string; got a NilClass ()
- [Solved] Brew Install ffmpeg Error: tar: Error opening archive: Failed to open
- How to Solve Brew install golangci-lint Error
- [Solved] Eslint error: /xxx/components/xxx import should occur after import of /xxx/utils/xxx
- [Solved] LaTeX Error: \Url Error ->\url used in a moving argument.
- [Solved] MongoDB Error: FaileError: dToParse: Password must be URL Encoded for mongodb:// URL:
- [Solved] Mac homebrew error: Error: homebrew-core is a shallow clone.
- [Solved] Mac Install homebrew Error: error: Not a valid ref: refs/remotes/origin/master
- tar: Error opening archive: Failed to open ‘/Users/xxx/Library/Caches/Homebrew/downloads/348a16e
- [Solved] Mac Notebook M1 Chip Install Hashlips library npm error
- MAC uses homebrew to install wget error [How to Solve]