Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save dgk/f99ee1e5364b97433ea6391a5eba700b to your computer and use it in GitHub Desktop.
Save dgk/f99ee1e5364b97433ea6391a5eba700b to your computer and use it in GitHub Desktop.

install 2.3.1 in ubuntu 19.04

You can install previous versions of Ruby following this instructions posted on this RVM github issue: rvm/rvm#4680 (comment)

I did the same as @grhansen suggested. I was installing ruby 2.3 and that required libssl1.0-dev. I am using Ubuntu 19.04. So I opened my /etc/apt/sources.list by

sudo nano /etc/apt/sources.list.

And then add the following line at the end of the file

deb http://security.ubuntu.com/ubuntu bionic-security main.

After that I run the command

sudo apt update

from the terminal. Then I run the command

apt-cache policy libssl1.0-dev

from the terminal and I got the following output

libssl1.0-dev: Installed: (none) Candidate: 1.0.2n-1ubuntu5.3 Version table: 1.0.2n-1ubuntu5.3 500 500 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages

Then I run the command

sudo apt-get install libssl1.0-dev

And it is installed then

Before adding I was getting

libssl1.0-dev: Installed: (none) Candidate: (none) Version table:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment