APT/Debian Packages with dependency issues #4945
-
When using the https://www.rabbitmq.com/install-debian.html#apt-quick-start-cloudsmith on Debian Buster the rabbitmq-server package couldn't be installed because of mismatching dependencies. Also the PackageCloud/Launchpad repository is affected. It worked before, I don't know since when it's broken, but I saw there have been updates on the repositories in the last days.
OS Details:
|
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
Launchpad is affected because it wipes older versions when a new one is released, so when 25.0 shipped, it stopped providing 24.3.x. If this was affecting all repos we would be flooded with similar reports but that's not the case. The only thing that can be done here is for RabbitMQ Debian package to list 25.0 as supported. We expect this to happen in the next patch release or two. |
Beta Was this translation helpful? Give feedback.
-
In order to troubleshoot apt dependency tree, use |
Beta Was this translation helpful? Give feedback.
-
If I were to troubleshoot this I'd also wipe all extra repositories and start from scratch e.g. with just PackageCloud or just Cloudsmith. Launchpad, like I said, is not an option at the moment because |
Beta Was this translation helpful? Give feedback.
-
@xpender I re-ran the steps from https://www.rabbitmq.com/install-debian.html#apt-quick-start-cloudsmith on a Debian Buster container and it installed the latest Erlang packages from Cloudsmith (and not Erlang 21, the default ones from the OS I guess). So the procedure works. Make sure to adapt the procedure to Debian Buster (instead of Ubuntu Bionic). Use also version pinning to install Erlang 24.x because RabbitMQ Debian package does not support Erlang 25 yet. Note the Launchpad PPA repository targets Ubuntu, it's not guaranteed to work with Debian. |
Beta Was this translation helpful? Give feedback.
-
A new round of releases listed Erlang 25 as supported in Debian package metadata. I cannot reproduce any failures or dependency conflicts using these two sets of steps on Ubuntu 20.04: #!/bin/sh
sudo apt-get install curl gnupg debian-keyring debian-archive-keyring apt-transport-https -y
## Team RabbitMQ's main signing key
sudo apt-key adv --keyserver "hkps://keys.openpgp.org" --recv-keys "0x0A9AF2115F4687BD29803A206B73A36E6026DFCA"
## Cloudsmith: modern Erlang repository
curl -1sLf https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/gpg.E495BB49CC4BBE5B.key | sudo apt-key add -
## Cloudsmith: RabbitMQ repository
curl -1sLf https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-server/gpg.9F4587F226208342.key | sudo apt-key add -
## Add apt repositories maintained by Team RabbitMQ
sudo tee /etc/apt/sources.list.d/rabbitmq.list <<EOF
## Provides modern Erlang/OTP releases
##
deb https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/deb/ubuntu bionic main
deb-src https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/deb/ubuntu bionic main
## Provides RabbitMQ
##
deb https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-server/deb/ubuntu bionic main
deb-src https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-server/deb/ubuntu bionic main
EOF
## Update package indices
sudo apt-get update -y
## Install Erlang packages
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
## Install rabbitmq-server and its dependencies
sudo apt-get install rabbitmq-server -y --fix-missing #!/usr/bin/sh
sudo apt-get install curl gnupg apt-transport-https -y
## Team RabbitMQ's main signing key
curl -1sLf "https://keys.openpgp.org/vks/v1/by-fingerprint/0A9AF2115F4687BD29803A206B73A36E6026DFCA" | sudo gpg --dearmor | sudo tee /usr/share/keyrings/com.rabbitmq.team.gpg > /dev/null
## Launchpad PPA that provides modern Erlang releases
curl -1sLf "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xf77f1eda57ebb1cc" | sudo gpg --dearmor | sudo tee /usr/share/keyrings/net.launchpad.ppa.rabbitmq.erlang.gpg > /dev/null
## PackageCloud RabbitMQ repository
curl -1sLf "https://packagecloud.io/rabbitmq/rabbitmq-server/gpgkey" | sudo gpg --dearmor | sudo tee /usr/share/keyrings/io.packagecloud.rabbitmq.gpg > /dev/null
## Add apt repositories maintained by Team RabbitMQ
sudo tee /etc/apt/sources.list.d/rabbitmq.list <<EOF
## Provides modern Erlang/OTP releases
##
## "bionic" as distribution name should work for any reasonably recent Ubuntu or Debian release.
## See the release to distribution mapping table in RabbitMQ doc guides to learn more.
deb [signed-by=/usr/share/keyrings/net.launchpad.ppa.rabbitmq.erlang.gpg] http://ppa.launchpad.net/rabbitmq/rabbitmq-erlang/ubuntu bionic main
deb-src [signed-by=/usr/share/keyrings/net.launchpad.ppa.rabbitmq.erlang.gpg] http://ppa.launchpad.net/rabbitmq/rabbitmq-erlang/ubuntu bionic main
## Provides RabbitMQ
##
## "bionic" as distribution name should work for any reasonably recent Ubuntu or Debian release.
## See the release to distribution mapping table in RabbitMQ doc guides to learn more.
deb [signed-by=/usr/share/keyrings/io.packagecloud.rabbitmq.gpg] https://packagecloud.io/rabbitmq/rabbitmq-server/ubuntu/ bionic main
deb-src [signed-by=/usr/share/keyrings/io.packagecloud.rabbitmq.gpg] https://packagecloud.io/rabbitmq/rabbitmq-server/ubuntu/ bionic main
EOF
## Update package indices
sudo apt-get update -y
## Install Erlang packages
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
## Install rabbitmq-server and its dependencies
sudo apt-get install rabbitmq-server -y --fix-missing |
Beta Was this translation helpful? Give feedback.
-
Interesting, as of today it works for me again too. Without any changes from the state where I had issues yesterday. Thanks anyway for your help. |
Beta Was this translation helpful? Give feedback.
A new round of releases listed Erlang 25 as supported in Debian package metadata.
I cannot reproduce any failures or dependency conflicts using these two sets of steps on Ubuntu 20.04: