curl - curl : (35) error:1400410B:SSL routines:CONNECT_CR_SRVR_HELLO:wrong version number every time I run brew

标签 curl homebrew

标题。由于此错误,我一直无法运行 brew。我目前没有运行任何代理或任何其他会中断在线连接的东西。当我详细运行它时,它会打印出来。

/usr/bin/curl --disable --globoff --show-error --user-agent Homebrew/3.0.2\ \(Macintosh\;\ Intel\ Mac\ OS\ X\ 11.2.1\)\ curl/7.64.1 --header Accept-Language:\ en --retry 3 --location --range 0-1 --dump-header - --write-out \%\{http_code\} --output /dev/null https://homebrew.bintray.com/bottles/xorgproto-2021.3.big_sur.bottle.tar.gz
/usr/bin/curl --disable --globoff --show-error --user-agent Homebrew/3.0.2\ \(Macintosh\;\ Intel\ Mac\ OS\ X\ 11.2.1\)\ curl/7.64.1 --header Accept-Language:\ en --fail --retry 3 --location --remote-time --continue-at 0 --output /Users/cameron/Library/Caches/Homebrew/downloads/4a01df4ef68ab52d11137a08c3675ac23d552925e4e667998e6d88ce18918d5d--xorgproto-2021.3.big_sur.bottle.tar.gz.incomplete https://homebrew.bintray.com/bottles/xorgproto-2021.3.big_sur.bottle.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (35) error:1400410B:SSL routines:CONNECT_CR_SRVR_HELLO:wrong version number

最佳答案

这是他们的 CDN 的问题。
看这里:https://github.com/Homebrew/brew/issues/10739
一种解决方法是将其添加到您的主机文件中:

54.188.157.32 homebrew.bintray.com

关于curl - curl : (35) error:1400410B:SSL routines:CONNECT_CR_SRVR_HELLO:wrong version number every time I run brew,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66411040/

相关文章:

python-3.x - 在 Visual Studio Code for Mac OS 中使用 Homebrew python3 和 homebrew 包和 pip/pip3 包

php - 如何在 php 中执行许多 curl 请求时实践良好的道德规范

c++ - valgrind 在使用 https 时报告 libcurl 的问题

php: 使用 cURL 获取 url 内容 (json)

php - 执行多个 cURL 请求

OSX 10.8 上 Homebrew 软件的 MySQL 错误

php - cURL 无法使用客户端证书(未找到 key 或密码短语错误?)

macos - 如何修复 Homebrew 权限?

macos - dnsmasq - Apple Silicon M1 上的服务状态问题

macos - 如何升级kubectl客户端版本