Closed aquarhead closed 6 months ago
I haven't seen this reported elsewhere. We use these packages in our own pipelines using standard Ubuntu images (e.g. ubuntu:focal
).
libtinfo5
is a library that's been introduced in Bionic (18.04). We can add it to the list of dependencies but it is not mentioned anywhere in the upstream Debian Erlang package repository.
So I'm afraid we don't have any evidence that this is a missing dependency in the package. It must be a missing dependency in the image you use.
Apparently the base Erlang package on Ubuntu does depend on libtinfo6
. This is an Ubuntu-specific dependency we can add.
So does Debian Buster but I'm not sure why it is never mentioned in the Debian package repo. It must be on an implicit list of system libraries somewhere.
Yeah looking at this https://github.com/docker-library/repo-info/blob/master/repos/ubuntu/local/focal.md it seems included in the docker image you use. Though the base AMI I used in EC2 is also "Ubuntu official".
Actually I just found that I'm using this
## 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 http://ppa.launchpad.net/rabbitmq/rabbitmq-erlang/ubuntu bionic main
deb-src 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 https://packagecloud.io/rabbitmq/rabbitmq-server/ubuntu/ bionic main
deb-src https://packagecloud.io/rabbitmq/rabbitmq-server/ubuntu/ bionic main
EOF
Switching those bionic
to focal
seems to fix the issue... I'll do a few more tests to confirm.
Can confirm it works (just tested through our CI) so it's mostly a failure of RTFM on my part :(
BTW, it seems it's not happy with debian-keyring
and debian-archive-keyring
for some reason:
==> amazon-ebs: E: Unable to locate package debian-keyring
==> amazon-ebs: E: Unable to locate package debian-archive-keyring
Though I can still install Erlang and RabbitMQ just fine without these 2 packages.
Yes, those packages are distribution-specific as well.
It's not obvious to me where this dependency comes from in both Debian (our upstream) and Ubuntu (which we do not rely on) packages. I'm afraid for the next few weeks I'd only be able to take a look at this in my spare time, so no guarantees.
If someone knows where this package should be added as a dependency, let us know. The difficult part here is deciding what's the right thing to do, not changing the control file ;)
I followed https://www.rabbitmq.com/install-debian.html#apt-quick-start-cloudsmith but
rabbitmq-server
failed to start up (I'm using Packer hence theamazon-ebs:
prefix)journalctl -xe
reveals missing dynamic library:And it's the same error if I try to run
erl
directly:After some digging it seems installing
libtinfo5
fixed the issue:Is this a missing dependency somewhere for the debian package?
I'm installing RabbitMQ on AWS EC2, with base image
ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20210518
(AMIami-0213344887e47003a
ineu-west-1
). Let me know if you need more information.