我想在我的 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/