【问题标题】:Homebrew cannot install anything: Caused by some SSL related problem with cURLHomebrew 无法安装任何东西:由 cURL 的一些 SSL 相关问题引起
【发布时间】:2021-05-30 09:47:51
【问题描述】:

Homebrew 停止工作。这是我尝试brew install anything 时遇到的错误:

$ brew install python
==> Downloading https://homebrew.bintray.com/bottles/gdbm-1.18.1_1.big_sur.bottle.tar.gz

curl: (35) error:1400410B:SSL routines:CONNECT_CR_SRVR_HELLO:wrong version number
Error: Failed to download resource "gdbm"
Download failed: https://homebrew.bintray.com/bottles/gdbm-1.18.1_1.big_sur.bottle.tar.gz

这是brew doctor & brew update 的输出:

$ brew doctor
Your system is ready to brew.
$ brew update
Already up-to-date.

问题似乎出在curl 命令上,所以我尝试了curl,结果相同:

curl https://homebrew.bintray.com/bottles/gdbm-1.18.1_1.big_sur.bottle.tar.gz
curl: (35) error:1400410B:SSL routines:CONNECT_CR_SRVR_HELLO:wrong version number

我不在代理后面。这是什么意思以及如何解决?

【问题讨论】:

    标签: macos shell curl command-line homebrew


    【解决方案1】:

    我在尝试安装 Python 时遇到了与 gdbm 类似的问题,但 brew doctor 给出了关于 ca-certificates 的提示。我做了

    brew install ca-certificates openssl@3
    

    问题已解决。

    【讨论】:

      猜你喜欢
      • 2018-04-26
      • 2013-06-29
      • 2017-12-18
      • 2018-09-20
      • 2015-12-05
      • 1970-01-01
      • 2019-02-28
      • 2020-07-31
      • 2021-05-02
      相关资源
      最近更新 更多