gpt4 book ai didi

rabbitmq - 无法安装Raspbian(Buster)上的RabbitMQ,因为Erlang不是正确的版本,即使它说它是最新的

转载 作者:行者123 更新时间:2023-12-03 16:22:04 25 4
gpt4 key购买 nike

我对Raspberry Pi和Linux/Debian还是很陌生,所以请多多包涵。我已经尝试了几个小时,以在我的Raspberry Pi 3上安装RabbitMQ,但无济于事。我遵循了这些步骤,但是最后,只要我尝试编写sudo apt-get install rabbitmq-server,我都会得到它:

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:
rabbitmq-server : Depends: erlang-base (>= 1:21.3) but 1:21.2.6+dfsg-1 is to be installed or
erlang-base-hipe (>= 1:21.3) but it is not installable or
esl-erlang (>= 1:21.3) but it is not installable
Depends: erlang-crypto (>= 1:21.3) but 1:21.2.6+dfsg-1 is to be installed or
esl-erlang (>= 1:21.3) but it is not installable
Depends: erlang-eldap (>= 1:21.3) but 1:21.2.6+dfsg-1 is to be installed or
esl-erlang (>= 1:21.3) but it is not installable
Depends: erlang-inets (>= 1:21.3) but 1:21.2.6+dfsg-1 is to be installed or
esl-erlang (>= 1:21.3) but it is not installable
Depends: erlang-mnesia (>= 1:21.3) but 1:21.2.6+dfsg-1 is to be installed or
esl-erlang (>= 1:21.3) but it is not installable
Depends: erlang-os-mon (>= 1:21.3) but 1:21.2.6+dfsg-1 is to be installed or
esl-erlang (>= 1:21.3) but it is not installable
Depends: erlang-parsetools (>= 1:21.3) but 1:21.2.6+dfsg-1 is to be installed or
esl-erlang (>= 1:21.3) but it is not installable
Depends: erlang-public-key (>= 1:21.3) but 1:21.2.6+dfsg-1 is to be installed or
esl-erlang (>= 1:21.3) but it is not installable
Depends: erlang-runtime-tools (>= 1:21.3) but 1:21.2.6+dfsg-1 is to be installed or
esl-erlang (>= 1:21.3) but it is not installable
Depends: erlang-ssl (>= 1:21.3) but 1:21.2.6+dfsg-1 is to be installed or
esl-erlang (>= 1:21.3) but it is not installable
Depends: erlang-syntax-tools (>= 1:21.3) but 1:21.2.6+dfsg-1 is to be installed or
esl-erlang (>= 1:21.3) but it is not installable
Depends: erlang-tools (>= 1:21.3) but 1:21.2.6+dfsg-1 is to be installed or
esl-erlang (>= 1:21.3) but it is not installable
Depends: erlang-xmerl (>= 1:21.3) but 1:21.2.6+dfsg-1 is to be installed or
esl-erlang (>= 1:21.3) but it is not installable
E: Unable to correct problems, you have held broken packages.

看到这一点之后,我意识到我的Erlang版本不是正确的,需要为1:21.3,而不是1:21.2,所以我去更新它,但是它说:
pi@raspberrypi:~ $ sudo apt-get install erlang
Reading package lists... Done
Building dependency tree
Reading state information... Done
erlang is already the newest version (1:21.2.6+dfsg-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

我在Erlang网站上看过,它只是说编写 apt-get install erlang使其起作用,但是由于某种原因,它只想保留在1:21.2.6版本,而不是似乎是最新版本的22.2。有人有建议吗?

最佳答案

在Franva发表评论后,我改善了答案。

转到页面:https://www.rabbitmq.com/install-debian.html#manual-installation
在页面中搜索“使用Dpkg进行手动安装”,您将找到下载链接。
目前(2020年6月4日)文件为“rabbitmq-server_3.8.4-1_all.deb”
下载该文件,然后将其移动到树莓派中。

转到页面:https://www.erlang-solutions.com/resources/download.html
并下载最新版本的Raspbian Buster。

然后在Raspbian中输入

sudo apt-get remove erlang*

然后使用以下命令安装从erlang网站下载的erlang软件包
sudo dpkg -i name_of_the_erlang_package.deb

使用以下命令安装从RabbitMQ网站下载的RabbitMQ软件包
sudo dpkg -i rabbitmq-server_3.8.4-1_all.deb

安装结束后,键入以下命令:
sudo systemctl enable rabbitmq-server
sudo systemctl start rabbitmq-server
sudo rabbitmq-plugins enable rabbitmq_management

由于默认用户(访客)仅从本地主机访问Web管理控制台,因此您可以从树莓派和Chrome类型登录
http://localhost:15672

并登录
用户:访客
通行证:客人
然后,您可以创建自己的用户并远程登录。

或使用以下命令创建自己的用户
sudo rabbitmqctl add_user your_username your_password
sudo rabbitmqctl set_user_tags your_username administrator
sudo rabbitmqctl set_permissions -p / your_username ".*" ".*" ".*"

并使用以下命令从浏览器连接到管理控制台
http://ip_of_the_raspberry:15672

关于rabbitmq - 无法安装Raspbian(Buster)上的RabbitMQ,因为Erlang不是正确的版本,即使它说它是最新的,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60645591/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com