无法在Ubuntu18.04 for rvm中安装libssl dev

无法在Ubuntu18.04 for rvm中安装libssl dev,ubuntu,ubuntu-14.04,ubuntu-16.04,ubuntu-12.04,ubuntu-18.04,Ubuntu,Ubuntu 14.04,Ubuntu 16.04,Ubuntu 12.04,Ubuntu 18.04,我曾试图在Ubuntu18.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

我曾试图在Ubuntu18.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
链接提示:


您可以显示apt存储库设置吗?似乎在多个repo上找到了libssl dev,apt只是想安装版本号最高的软件包。您可以使用apt cache show libssl dev | grep-i version验证这一点。更新了问题@ClaudioKuenzlerStill中的结果,请显示此服务器上所有活动的存储库。苏里回购似乎也很活跃?确保你也有仿生更新repo活动。您也可以暂时禁用所有非官方repo来安装该软件包。
 1. sudo apt purge libssl-dev && sudo apt install libssl1.0-dev
 2. rvm install 2.3.5 --autolibs=disable