我找不到在其他线程中讨论的相同错误。我在一台运行macOS Ventura的新MBA电脑上安装了自制软件。我已经做了通常的准备,但是当运行/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
时,我得到:
[...]
==> Downloading and installing Homebrew...
remote: Enumerating objects: 234953, done.
remote: Counting objects: 100% (623/623), done.
remote: Compressing objects: 100% (391/391), done.
remote: Total 234953 (delta 260), reused 550 (delta 212), pack-reused 234330
Receiving objects: 100% (234953/234953), 68.36 MiB | 11.09 MiB/s, done.
Resolving deltas: 100% (172239/172239), done.
From https://github.com/Homebrew/brew
* [new branch] master -> origin/master
* [new branch] sorbet-files-update -> origin/sorbet-files-update
* [new branch] test-runners -> origin/test-runners
* [new tag] 0.1 -> 0.1
[... a bunch of new tags ...]
* [new tag] 4.0.8 -> 4.0.8
* [new tag] 4.0.9 -> 4.0.9
HEAD is now at a88397096 Merge pull request #15121 from singingwolfboy/pip-no-build-isolation
Error: Failed to download https://formulae.brew.sh/api/formula.jws.json!
Error: Failure while executing; `/usr/bin/env /opt/homebrew/Library/Homebrew/shims/shared/curl --disable --cookie /dev/null --globoff --user-agent Homebrew/4.0.11 (Macintosh; arm64 Mac OS X 13.3) curl/7.87.0 --header Accept-Language: en --fail --progress-bar --location --remote-time --output /Users/albep/Library/Caches/Homebrew/api/formula.jws.json --compressed --speed-limit 100 --speed-time 5 --progress-bar --silent https://formulae.brew.sh/api/formula.jws.json` exited with 22.
Failed during: /opt/homebrew/bin/brew update --force --quiet
有什么建议吗?
我遇到的错误似乎是一个不时发生的临时故障。我按照这个线程https://github.com/orgs/Homebrew/discussions/4236中讨论的建议(即,擦除Homebrew安装缓存并重新运行安装程序),它工作了。