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

标签 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 并成功运行。

最佳答案

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

关于ubuntu - 由于不满足依赖关系而无法安装rabbitmq : libssl,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57175925/

相关文章:

tcp - 如何检测 tcp 客户端与 gen_tcp 断开连接?

php - 将 Docker 容器连接到远程 MySQL 数据库

java - Coldfusion 的任务队列

python - 为什么我们在 Python 中使用 logstash_formatter 包?

c# - RabbitMQ 客户端连接到多个主机

erlang - 十六进制转 64 有符号十进制

security - 运行 Erlang 集群时有哪些安全风险?

python - 如何在 Ubuntu 中全局限制 python 对内核的使用?

python - 如何重新启动特定正在运行的python文件Ubuntu

regex - Ansible 正则表达式替换 Ubuntu netplan 文件中的 DNS 地址