Unable to `bundle install` on Debian Wheezy

Posted . Visible to the public.

When running bundle install you get the following error:

Could not verify the SSL certificate for https://rubygems.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'.

The proper way to resolve this seems to be to update Rubygems with gem update --system, but on a Debian system you then get the following error:

gem update --system is disabled on Debian, because it will overwrite the content of the rubygems Debian package, and might break your Debian system in subtle ways. The Debian-supported way to update rubygems is through apt-get, using Debian official repositories.

Unfortunately sudo apt-get install rubygems doesn't solve the issue either, and you end up back at the SSL error once you're finished.

The simple way to move on past this is to temporarily edit you Gemfile and change source "https://rubygems.org" from https to http

adre
Last edit
adre
Posted by adre to Foxsoft (2017-03-22 10:39)