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

时间:2019-11-20 06:24:01

标签: ubuntu ubuntu-14.04 ubuntu-16.04 ubuntu-12.04 ubuntu-18.04

我试图在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

1 个答案:

答案 0 :(得分:1)

链接提示: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