ubuntu - 由于不满足依赖关系而无法安装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 并成功运行。
解决方案
安装 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
推荐阅读
- android - 如何从 Android 中的视频文件中分离音频流比特率?
- java - 如何将资源文件夹中的html文件与Spring Boot连接起来?
- javascript - ...this.somefunction() (调用以省略号开头的类函数)在 javascript 中的对象分配中做了什么?
- sql - 如何避免使用视图连接两个表?
- python - 如何计算 2 个数字的比率并返回大约 1000 个数字的等效列表?
- java - 如何以正确的形式获取信息(Spring Boot)
- angular - 使用服务将价值从一个组件注入另一个组件
- kubernetes - ingress-nginx 配置使用自定义变量
- php - while循环中的PHP fpdf-我想拆分为多个pdf
- python - 重新加载功能无法擦除已删除的变量