Comments (15)
the same error with 3.x versions..
As I understood, the problem that RVM cant work with the openssl v3. So I installed the v1 version of openssl and compiled ruby with the old version
installing the openssl v1
$ cd /usr/local/src/
$ sudo wget https://www.openssl.org/source/openssl-1.1.1s.tar.gz
$ sudo tar -xf openssl-1.1.1s.tar.gz
$ cd openssl-1.1.1s
$ sudo ./config --prefix=/usr/local/ssl --openssldir=/usr/local/ssl shared zlib
$ sudo make
$ sudo make install
$ sudo rmdir certs
$ sudo ln -sf /etc/ssl/certs/ certs
installing ruby
$ rvm install 3.1.2 --with-openssl-dir=/usr/local/ssl
I hope it will help
from ubuntu_rvm.
Ok, finally I've backported openssl1.1
to 22.04 for those using the PPA.
You want, after sudo apt update
, downgrade packages with:
sudo apt install libssl-dev=1.1.1l-1ubuntu1.4 openssl=1.1.1l-1ubuntu1.4
from ubuntu_rvm.
@diogeneshas The package is available only if you added the PPA, but it'll not help on this case, as the required version is 1.1
from ubuntu_rvm.
Issue on parent repo: rvm/rvm#5209
from ubuntu_rvm.
@fsdevblog Thanks for raising this and to find a solution!
Optionally, you could install the
openssl
v1 provided with the PPA:sudo apt install openssl1.0
I tried before opening the issue
the same error with 3.x versions.. As I understood, the problem that RVM cant work with the openssl v3. So I installed the v1 version of openssl and compiled ruby with the old version
installing the openssl v1
$ cd /usr/local/src/ $ sudo wget https://www.openssl.org/source/openssl-1.1.1c.tar.gz $ sudo tar -xf openssl-1.1.1c.tar.gz $ cd openssl-1.1.1c $ sudo ./config --prefix=/usr/local/ssl --openssldir=/usr/local/ssl shared zlib $ sudo make $ sudo make installinstalling ruby
$ rvm install 3.1.2 --with-openssl-dir=/usr/local/sslI hope it will help
Thanks! Ruby installed! Now I have problem with bundle install:
$ bundle -v
Bundler version 1.17.3
$ bundle install
Fetching source index from https://gems.contribsys.com/
Retrying fetcher due to error (2/4): Bundler::Fetcher::CertificateFailureError Could not verify the SSL certificate for https://gems.contribsys.com/.
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://gems.contribsys.com/.
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://gems.contribsys.com/.
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://gems.contribsys.com/.
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'.
@raelgc , can you reopen the issue?
from ubuntu_rvm.
The openssl you've compiled does not have access to the CA certificates. Symlink the certs/ dir to /etc/ssl/certs then it will work.
from ubuntu_rvm.
@fsdevblog I just updated your solution to use openssl1.1 version n
(instead of version c
) and added steps to link to /etc/ssl/certs
.
from ubuntu_rvm.
@raelgc Thanks for the tip, it worked well for me 👍
from ubuntu_rvm.
As this repository is dedicated to the Ubuntu installer, and this is a rvm
issue, I'll close it. In the case you need more help, please, open it (or check if there is any related issue) in the rvm repository.
from ubuntu_rvm.
@fsdevblog Thanks for raising this and to find a solution!
Optionally, you could install the
openssl
v1 provided with the PPA:sudo apt install openssl1.0
E: Unable to locate package openssl1.0
E: Couldn't find any package by glob 'openssl1.0'
from ubuntu_rvm.
Great work here - thank you!
from ubuntu_rvm.
Ok, finally I've backported
openssl1.1
to 22.04 for those using the PPA.You want, after
sudo apt update
, downgrade packages with:sudo apt install libssl-dev=1.1.1l-1ubuntu1.4 openssl=1.1.1l-1ubuntu1.4
Is there any way to block libssl-dev and openssl from updating? Because they are always updated and it is necessary to keep downgrading again!
from ubuntu_rvm.
@mpetri-wert, 3 possible solutions:
Hold upgrade using apt
Warning: This can lead to some problems during upgrade. Run at your own risk!
Hold a package: sudo apt-mark hold <package-name>
Remove the hold: sudo apt-mark unhold <package-name>
Show all packages on hold: sudo apt-mark showhold
Use local SSL source
Use the above solution in comment #67 (comment) (I keep updating it to point to the latest SSL 1.1.1 build)
Upgrade to Ruby 3.1.3
Few days ago I've built and uploaded a binary for Ruby 3.1.3, which appears to works fine in Ubuntu 22.04
. Try the default install command: rvm install 3.1.3
.
from ubuntu_rvm.
a little correction to the script above. it should be:
$ sudo rmdir /usr/local/ssl/certs
$ sudo ln -sf /etc/ssl/certs/ /usr/local/ssl/certs
from ubuntu_rvm.
with all the respect possible this defect was not fixed before it was closed as I'm still not able to install Ruby 2.6.2 on Ubuntu 22.04.2 LTS
Edit: rvm/rvm#5209
from ubuntu_rvm.
Related Issues (20)
- Please update the PPA for Ubuntu Hirsute Hippo HOT 1
- rvm group is not creating during install HOT 7
- I created a new mysql user and for rails when i'am running bundle install it gives me this error. How can i fix this, any suggestion or experience with this? HOT 2
- Command-Line Equivalent for README Step 2 Change Your Terminal Window ? HOT 1
- Please update the PPA for Ubuntu Impish Indri HOT 1
- rvm not found in Ubuntu 18.04 HOT 6
- a lower gid for rvm would be more appropiate HOT 1
- Not working yet in Ubuntu 22.10? HOT 2
- GPG Error
- Absent `~/.rvm` on Ubuntu 22.04 LTS HOT 1
- `apt-add-repository` example doesn't work on Debian bookworm HOT 1
- Why not just tell users to run `su $USER`? HOT 4
- rvm install ruby gives error - Error running '__rvm_make -j4' on Ubuntu 22 HOT 5
- Unable to install RVM in Ubuntu 22.04 Docker HOT 4
- Unable to install RVM ubuntu 22.04 (WSL) HOT 3
- problem with ruby 2.7.7 HOT 1
- Unable to install rvm on Ubuntu 23.04 HOT 2
- Fish(?) - missing end to balance this if statement HOT 4
- Unable to install rvm on Ubuntu 23.10 (mantic) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ubuntu_rvm.