我现在已经进行了多个小时的升级,最终真的陷入困境。
这一切都是在我收到典型的Bundler::Fetcher::CertificateFailureError
时开始的。经过多次修补后,我想我已将所有内容升级到最新版本
$ gem -v
2.6.9
$ ruby -v
ruby 2.3.3p222 (2016-11-21 revision 56859) [i386-mingw32]
$ bundle -v
Bundler version 1.14.2
在某些时候,我用
改变了我的宝石来源$ gem sources --remove http://rubygems.org
$ gem sources --add http://rubygems.org
我还将我的Gemfile更改为http
当我运行`bundle install'时,我收到以下错误(注意,我不得不手动破坏bit.ly url以发布错误的内容)
Fetching source index from https://rails-assets.org/
Retrying fetcher due to error (2/4): Bundler::Fetcher::CertificateFailureError Could not verify the SSL certificate for https://rails-assets.org/.
There is a chance you are experiencing a man-in-the-middle attack, but most likely your system doesn't have the CA certificates needed for verification. For information about OpenSSL certificates, see http://bit. ly/ruby-ssl. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'.
Retrying fetcher due to error (3/4): Bundler::Fetcher::CertificateFailureError Could not verify the SSL certificate for https://rails-assets.org/.
There is a chance you are experiencing a man-in-the-middle attack, but most likely your system doesn't have the CA certificates needed for verification. For information about OpenSSL certificates, see http://bit. ly/ruby-ssl. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'.
Retrying fetcher due to error (4/4): Bundler::Fetcher::CertificateFailureError Could not verify the SSL certificate for https://rails-assets.org/.
There is a chance you are experiencing a man-in-the-middle attack, but most likely your system doesn't have the CA certificates needed for verification. For information about OpenSSL certificates, see http://bit. ly/ruby-ssl. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'.
Could not verify the SSL certificate for https://rails-assets.org/.
There is a chance you are experiencing a man-in-the-middle attack, but most
likely your system doesn't have the CA certificates needed for verification. For
information about OpenSSL certificates, see http://bit. ly/ruby-ssl. To connect
without using SSL, edit your Gemfile sources and change 'https' to 'http'.
enter code here
所以我回到了我的起点。另外,当我尝试https:到我的gem sources
时,我现在又收到了另一个错误,但在我得到这个问题之后,这可能会更好。作为一个不同的问题。
答案 0 :(得分:3)
如果那个和指南中的指南没有解决它,你可能需要重新安装。我之前遇到过这种情况,即使确保我的证书是最新的,也似乎没有任何工作;幸运的是,重新安装似乎解决了这个问题。
答案 1 :(得分:0)
您可以更新openssl软件包