首页 > 解决方案 > 由于不满足依赖关系而无法安装rabbitmq:libssl

问题描述

我想在我的 Ubuntu 18.04 上安装 rabbitmq。我一直在关注官方文档。但是,我的安装没有完成,因为我卡在了这一步:sudo apt-get install rabbitmq-server -y --fix-missing因为我遇到了一个错误:未满足的依赖项。

我尝试安装 libssl,然后安装 erlang-crypto,但没有成功。我也安装aptitude了我尝试安装erlang-crypto的东西,它也没有安装任何软件包。

我正在运行的命令是:

sudo apt-get install -y erlang-base \
                        erlang-asn1 erlang-crypto erlang-eldap erlang-ftp erlang-inets \
                        erlang-mnesia erlang-os-mon erlang-parsetools erlang-public-key \
                        erlang-runtime-tools erlang-snmp erlang-ssl \
                        erlang-syntax-tools erlang-tftp erlang-tools erlang-xmerl

我收到一条失败消息:

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:
 erlang-crypto : Depends: libssl1.1 (>= 1.1.1) but it is not installable
E: Unable to correct problems, you have held broken packages.

libssl软件包不可用,我已成功安装libssl-dev

我希望完全安装 RabbitMQ 并成功运行。

标签: ubunturabbitmqerlangubuntu-18.04libssl

解决方案


安装 rabbitmq 时,我在 16.04 上遇到了同样的错误。我通过将以下行添加到/etc/apt/sources.list

deb https://dl.bintray.com/rabbitmq-erlang/debian xenial erlang-21.x
deb https://dl.bintray.com/rabbitmq/debian xenial main

之后,运行:

sudo apt-get update -y 
sudo apt-get install -y rabbitmq-server

如果您想在 18.04 上执行相同操作,则添加相同的行,但将“xenial”更改为“bionic”。

我从 RabbitMQ 文档中获得了这些信息:https ://www.rabbitmq.com/install-debian.html#apt-bintray


推荐阅读