无法在 ubuntu 18.04 中为 rvm 安装 libssl-dev

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

我试图在 ubuntu 18.04 中为 ruby 2.4 和 rails 5 加载 rvm,但这取决于 libssl-dev。现在安装它会出现以下错误

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

来自 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