Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Not able to install libssl-dev in ubuntu 18.04 for rvm

I was trying to load rvm with for ruby 2.4 and rails 5 in ubuntu 18.04 but it depends upon libssl-dev. now installing it gives following error

vidur@vidur-desktop:~/rails_apps/tukaweb$ sudo apt-get install libssl-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libssl-dev : Depends: libssl1.1 (= 1.1.1-1ubuntu2.1~18.04.5) but 1.1.1c-1+ubuntu16.04.1+deb.sury.org+1 is to be installed
E: Unable to correct problems, you have held broken packages.


vidur@vidur-desktop:~$ apt-cache show libssl-dev | grep -i version
Version: 1.1.1-1ubuntu2.1~18.04.5
Version: 1.1.0g-2ubuntu4
like image 693
vidur punj Avatar asked Oct 18 '25 01:10

vidur punj


1 Answers

Hint from Link: https://github.com/rvm/rvm/issues/4357

 1. sudo apt purge libssl-dev && sudo apt install libssl1.0-dev
 2. rvm install 2.3.5 --autolibs=disable
like image 59
vidur punj Avatar answered Oct 21 '25 00:10

vidur punj



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!