簡體   English   中英

Homebrew 無法安裝任何東西:由 cURL 的一些 SSL 相關問題引起

[英]Homebrew cannot install anything: Caused by some SSL related problem with cURL

自制停止工作。 這是我嘗試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 doctorbrew update的 output :

$ 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

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

我在gdbm嘗試安裝 Python 時遇到了類似的問題,但brew doctor給出了關於ca-certificates的提示。 我做了

brew install ca-certificates openssl@3

問題就解決了。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM