首页 > homebrew curl: (35) Server aborted the SSL handshake

homebrew curl: (35) Server aborted the SSL handshake

最近一直被这个问题困扰,
在如执行

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

或是以前在brew install something的时候总是会出现这个错误

curl: (35) Server aborted the SSL handshake

curl 版本相应信息

curl -V
curl 7.43.0 (x86_64-apple-darwin15.0) libcurl/7.43.0 SecureTransport zlib/1.2.5
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp 
Features: AsynchDNS IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz UnixSockets

有时候在MAC上面是使用了shadowsocks的。感觉这个不是问题的关键,因为推出这个还是不行。

重新编译那个curl的但是不知道怎么的--with-ssl总是加不进去
没有ssl 就会报curl(1)https相关的东西了。

希望给个解决的办法吧。


还是网络的问题,
我以前一直觉得shadowsocks相当于VPN了,
还是有很大的差别在这里的。
具体的细节等下好好去了解一下,
总之:挂上VPN吧。

Update:2016-06-08 更优雅的解决方案

cd /usr/local
git remote set-url origin git://mirrors.ustc.edu.cn/brew.git

echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles' >> ~/.bashrc

替换homebrew源,使用中科大或者其他的镜像


我也一直遇到这样的情况啊,网络不好的话,看视频什么的都是非常的流畅啊。
具体怎么解决啊?
挂vpn?怎么挂,可以具体说说方法么?


网络问题,连上vpn之后解决了


升级curl;

如果不行,可能就是网络原因。前段时间也遇到了此问题,在公司好多同事都不好用了,回家就ok了。

也有可能是镜像源对大量请求的ip直接限制了,像12306。公司的出口ip唯一


我今天遇到了此问题,在stackoverflow上找到了一个解决方案,试了可以解决这个问题。
我的mac os版本为10.11.6

首先打开terminal,按照下面步骤来操作即可。
First run:

xcode-select --install

Then:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
【热门文章】
【热门文章】