报以下错误
Updating Homebrew... ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/gmp-6.2.1.b #=#=# curl: (22) The requested URL returned error: 404 Warning: Bottle missing, falling back to the default domain... ==> Downloading https://ghcr.io/v2/homebrew/core/gmp/manifests/6.2.1 Already downloaded: /Users/lipingping/Library/Caches/Homebrew/downloads/265b882d093ce331d7a26dfc09487e74735ef9804efd8097a845ba23b86c097d--gmp-6.2.1.bottle_manifest.json ==> Downloading https://ghcr.io/v2/homebrew/core/gmp/blobs/sha256:6a44705536f25c Already downloaded: /Users/lipingping/Library/Caches/Homebrew/downloads/3bbbc5e33ceb43ea4ee408c164c26e7d80adc472651c80ddfabd02130e92f034--gmp--6.2.1.big_sur.bottle.tar.gz ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/isl-0.24.bi #=#=# curl: (22) The requested URL returned error: 404 Warning: Bottle missing, falling back to the default domain... ==> Downloading https://ghcr.io/v2/homebrew/core/isl/manifests/0.24 ######################################################################## 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/isl/blobs/sha256:d8c7026042e122 ==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sh ######################################################################## 100.0% ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/mpfr-4.1.0. ######################################################################## 100.0% ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/libmpc-1.2. ######################################################################## 100.0% ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/zstd-1.5.0. #=#=# curl: (22) The requested URL returned error: 404 Warning: Bottle missing, falling back to the default domain... ==> Downloading https://ghcr.io/v2/homebrew/core/zstd/manifests/1.5.0 ==> Pouring gmp-6.2.1.big_sur.bottle.tar.gz tar: Error opening archive: Failed to open '/Users/your/Library/Caches/Homebrew/downloads/7d0352be7245648d93bcdde92042e89cd80327103bfcc1b2d170b0e147076b35--gmp-6.2.1.big_sur.bottle.tar.gz' Error: Failure while executing; `tar --extract --no-same-owner --file /Users/you r/Library/Caches/Homebrew/downloads/7d0352be7245648d93bcdde92042e89cd80327103bfcc1b2d170b0e147076b35--gmp-6.2.1.big_sur.bottle.tar.gz --directory /private/tmp/d20220803-67031-1qoxoni` exited with 1. Here's the output: tar: Error opening archive: Failed to open '/Users/your/Library/Caches/Homebrew/downloads/7d0352be7245648d93bcdde92042e89cd80327103bfcc1b2d170b0e147076b35--gmp-6.2.1.big_sur.bottle.tar.gz'
解决方法
export HOMEBREW_BOTTLE_DOMAIN=''
重新安装
brew install gcc
得到结果
(base) deMBP ~ % brew install gcc
==> Downloading https://ghcr.io/v2/homebrew/core/gmp/manifests/6.2.1
Already downloaded: /Users/your/Library/Caches/Homebrew/downloads/265b882d093ce331d7a26dfc09487e74735ef9804efd8097a845ba23b86c097d--gmp-6.2.1.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/gmp/blobs/sha256:6a44705536f25c
Already downloaded: /Users/your/Library/Caches/Homebrew/downloads/3bbbc5e33ceb43ea4ee408c164c26e7d80adc472651c80ddfabd02130e92f034--gmp--6.2.1.big_sur.bottle.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/isl/manifests/0.24
Already downloaded: /Users/your/Library/Caches/Homebrew/downloads/cf108f3cbdbad48a5ecbe0a148e97b47590045a58151ad768bcf7219ec23305a--isl-0.24.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/isl/blobs/sha256:d8c7026042e122
Already downloaded: /Users/your/Library/Caches/Homebrew/downloads/6084560bcc9f57f61c1551eb851321d27bd02d6565112f1250593d18de9a330f--isl--0.24.big_sur.bottle.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/mpfr/manifests/4.1.0
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/mpfr/blobs/sha256:1e8eb0326f62d
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sh
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/libmpc/manifests/1.2.1