无法从rubygems下载数据

无法从rubygems下载数据

本文介绍了无法从rubygems下载数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道当试图运行 gem update --system ;



<$ p时,这个错误意味着什么$ gem update --system
错误:执行gem时(Gem :: RemoteFetcher :: FetchError)
SSL_connect返回= 1 errno = 0状态= SSLv3读取服务器证书B:证书验证失败(https://api.rubygems.org/specs.4.8.gz)

尝试时我也会遇到类似错误;

  {9 :30} [2.2.3]〜➭gem install tunnelss 
错误:无法找到有效的gem'tunnelss'(> = 0),原因如下:
无法从https下载数据: //rubygems.org/ - SSL_connect返回= 1 errno = 0状态= SSLv3读取服务器证书B:证书验证失败(https://api.rubygems.org/specs.4.8.gz)

供参考 - 我可以访问 https://api.rubygems.org/specs.4.8.gz 在浏览器中,它会开始下载,所以这不是问题。



不真的知道w帽子试试。任何人都可以提出建议?

解决方案

这是一个已知问题,请参阅和/或用于解决它。



昨天当我遇到同样的问题时我在Windows上安装了Ruby。所以,亲自这个为我工作。另一个指南提到了 cacert.pem


的一个不存在的URL

I don't know what this error means when trying to run gem update --system;

{9:29}[2.2.3]~ ➭ gem update --system
ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError)
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://api.rubygems.org/specs.4.8.gz)

I also get a similar error when trying;

{9:30}[2.2.3]~ ➭ gem install tunnelss
ERROR:  Could not find a valid gem 'tunnelss' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://api.rubygems.org/specs.4.8.gz)

FYI - I can visit https://api.rubygems.org/specs.4.8.gz in the browser and it will start downloading so that's not the problem.

Don't really know what to try. Can anyone advise?

解决方案

This is a known issue, see https://gist.github.com/luislavena/f064211759ee0f806c88 and/or https://gist.github.com/fnichol/867550 for solving it.

I stumbled over the same issue yesterday when I installed Ruby on Windows. So, personally, this https://superdevresources.com/ssl-error-ruby-gems-windows/ worked for me. The other guide mentioned a non-existent URL to the cacert.pem

这篇关于无法从rubygems下载数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-06 08:05