【发布时间】:2018-11-30 05:20:58
【问题描述】:
在中国意味着有时您无法通过 brew upgrade 升级 brew 软件包,它会遇到这样的错误:
curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to cli-assets.heroku.com:443
Error: An exception occurred within a child process:
DownloadError: Failed to download resource "heroku"
Download failed: https://cli-assets.heroku.com/heroku-v7.18.10/heroku-v7.18.10.tar.xz
我曾经将这些失败的包下载到 ~/Library/Caches/Homebrew,然后再次运行该命令,但在 brew 改变其缓存结构后,这似乎不再起作用(显然对我来说更糟)。
如果我想继续使用 brew 来升级我的所有软件包,我现在该怎么办?
我试过你的方法后,弹出的错误是这样的:
==> Upgrading heroku/brew/heroku
==> Installing dependencies for heroku/brew/heroku: heroku/brew/heroku-node
==> Installing heroku/brew/heroku dependency: heroku/brew/heroku-node
==> Downloading https://cli-assets.heroku.com/homebrew/node-11.3.0.tar.xz
curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to cli-assets.heroku.com:443
Error: An exception occurred within a child process:
DownloadError: Failed to download resource "heroku-node"
Download failed: https://cli-assets.heroku.com/homebrew/node-11.3.0.tar.xz
另外,假设我从https://dl.google.com/go/go1.11.4.src.tar.gz下载go并将其重命名为go--git,这是brew --cache go的输出,但它仍然无法安装。
fatal: unable to access 'https://go.googlesource.com/tools.git/': Failed to connect to go.googlesource.com port 443: Operation timed out
Error: An exception occurred within a child process:
DownloadError: Failed to download resource "go--gotools"
Failure while executing; `git clone --branch release-branch.go1.11 https://go.googlesource.com/tools.git /Users/aero/Library/Caches/Homebrew/go--gotools--git` exited with 128. Here's the output:
Cloning into '/Users/aero/Library/Caches/Homebrew/go--gotools--git'...
fatal: unable to access 'https://go.googlesource.com/tools.git/': Failed to connect to go.googlesource.com port 443: Operation timed out
如果我运行brew --cache go--gotools,它将显示Error: No available formula with the name "go--gotools"
【问题讨论】:
标签: homebrew