由于不满足依赖关系而无法安装rabbitmq:libssl

时间:2019-07-24 05:36:18

标签: ubuntu rabbitmq erlang ubuntu-18.04 libssl

我想在Ubuntu 18.04上安装rabbitmq。我一直在关注官方documentation。但是,由于遇到以下错误: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并成功运行。

1 个答案:

答案 0 :(得分:0)

在安装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