ubuntu 运行'要求debian库安装libssl-dev'时出错,

wlp8pajw  于 2023-03-22  发布在  其他
关注(0)|答案(3)|浏览(331)

我在安装rvm 2.6.3时遇到问题

Installing required packages: libssl-dev....
Error when running 'requirements_debian_libs_install libssl-dev',
please read /home/tanmay/.rvm/log/1568568674_ruby-2.6.3/package_install_libssl-dev.log
Requirements installation failed with status: 100.

然后我尝试安装libssl-dev.它没有安装..我得到这个错误:

Package libssl-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libssl-dev' has no installation candidate

我现在该怎么办?

jv4diomz

jv4diomz1#

以下是Ubuntu 19+的解决方案

sudo nano /etc/apt/sources.list
add deb http://security.ubuntu.com/ubuntu bionic-security main
sudo apt update && apt-cache policy libssl1.0-dev
sudo apt-get install libssl1.0-dev
fykwrbwg

fykwrbwg2#

它为我工作,但我必须在sources.list文件中添加“deb http://security.ubuntu.com/ubuntu bionic-security main”。

t5fffqht

t5fffqht3#

错误消息“Error running 'requirements_debian_libs_install libssl1.0-dev'”表明在基于Debian的操作系统上安装“libssl1.0-dev”软件包时出现问题。
首次更新包列表:运行以下命令以更新程序包列表:

sudo apt-get update

然后升级已安装的软件包:运行以下命令升级任何过期的软件包:

sudo apt-get upgrade

尝试再次安装软件包:执行以下命令安装libssl1.0-dev包:

sudo apt-get install libssl1.0-dev.

希望这个能帮上忙

相关问题