erlang-crypto still depends on libssl1.1 which is absent in Ubuntu 22.04

Asked by Przemyslaw Pycko

I'm on fresh Ubuntu 22.04 (jammy) install.

When trying to `sudo apt install erlang-crypto` i got an error:

`The following packages have unmet dependencies:
 erlang-crypto : Depends: libssl1.1 (>= 1.1.1) but it is not installable`

https://packages.ubuntu.com/jammy/erlang-crypto states that erlang-crypto should be dependent on libssl3. However it seems that it is still dependent on libssl1.1 (which is the case for Ubuntu 21.10 (impish)).

Should erlang-crypto libssl dependency for Ubuntu 22.04 be fixed?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu erlang Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
Przemyslaw Pycko (paj-co) said :
#1

Now I see, when running `apt show -a erlang-crypto` - there is more then one package version, and in fact, one linked in link above, depends on `libssl3` but every other on `libssl1.1`. The latest version depends on `libssl1.1` - that is why I have this issue.

erlang-crypto last 6 versions list from newest:
Version: 1:24.3.3-1
Version: 1:24.3.2-1
Version: 1:24.3.1-1
Version: 1:24.3-1
Version: 1:24.2.2-1
Version: 1:24.2.1+dfsg-1

Why the latest version doesn't depend on `libssl3`? Why only the 1:24.2.1+dfsg-1 depends on newer `libssl3`?

Revision history for this message
Manfred Hampl (m-hampl) said :
#2

For diagnostic purposes please provide the full output that you receive for the following commands:

uname -a
lsb_release -crid
apt-cache policy erlang-crypto

Revision history for this message
Przemyslaw Pycko (paj-co) said :
#3

Should I run `sudo apt install erlang-crypto=1:24.2.1+dfsg-1`?

If I ever do `sudo apt update` will it automatically update `erlang-crypto` version to latest dependent on `libssl1.1` and break the package that depend on `erlang-crypto`?

Revision history for this message
Przemyslaw Pycko (paj-co) said :
#4

~$ uname -a
Linux Copm 5.15.0-25-generic #25-Ubuntu SMP Wed Mar 30 15:54:22 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

~$ lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 22.04 LTS
Release: 22.04
Codename: jammy

~$ apt-cache policy erlang-crypto
erlang-crypto:
  Installed: (none)
  Candidate: 1:24.3.3-1
  Version table:
     1:24.3.3-1 500
        500 https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/deb/ubuntu focal/main amd64 Packages
     1:24.3.2-1 500
        500 https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/deb/ubuntu focal/main amd64 Packages
     1:24.3.1-1 500
        500 https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/deb/ubuntu focal/main amd64 Packages
     1:24.3-1 500
        500 https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/deb/ubuntu focal/main amd64 Packages
     1:24.2.2-1 500
        500 https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/deb/ubuntu focal/main amd64 Packages
     1:24.2.1+dfsg-1 500
        500 http://pl.archive.ubuntu.com/ubuntu jammy/main amd64 Packages
     1:24.2.1-1 500
        500 https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/deb/ubuntu focal/main amd64 Packages
     1:24.2-1 500
        500 https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/deb/ubuntu focal/main amd64 Packages
     1:24.1.7-1 500
        500 https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/deb/ubuntu focal/main amd64 Packages
     1:24.1.6-1 500
        500 https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/deb/ubuntu focal/main amd64 Packages
     1:24.1.5-1 500
        500 https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/deb/ubuntu focal/main amd64 Packages
     1:24.1.4-1 500
        500 https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/deb/ubuntu focal/main amd64 Packages
     1:24.1.3-1 500
        500 https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/deb/ubuntu focal/main amd64 Packages
     1:24.1.2-1 500
        500 https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/deb/ubuntu focal/main amd64 Packages
     1:24.1.1-1 500
        500 https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/deb/ubuntu focal/main amd64 Packages
     1:24.1-1 500
        500 https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/deb/ubuntu focal/main amd64 Packages
     1:24.0.6-1 500
        500 https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/deb/ubuntu focal/main amd64 Packages
     1:24.0.5-1 500
        500 https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/deb/ubuntu focal/main amd64 Packages
     1:24.0.4-1 500
        500 https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/deb/ubuntu focal/main amd64 Packages
     1:24.0.3-1 500
        500 https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/deb/ubuntu focal/main amd64 Packages
     1:24.0.2-1 500
        500 https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/deb/ubuntu focal/main amd64 Packages
     1:23.3.4.13-1 500
        500 https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/deb/ubuntu focal/main amd64 Packages
     1:23.3.4.12-1 500
        500 https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/deb/ubuntu focal/main amd64 Packages
     1:23.3.4.11-1 500
        500 https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/deb/ubuntu focal/main amd64 Packages
     1:23.3.4.10-1 500
        500 https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/deb/ubuntu focal/main amd64 Packages
     1:23.3.4.9-1 500
        500 https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/deb/ubuntu focal/main amd64 Packages
     1:23.3.4.8-1 500
        500 https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/deb/ubuntu focal/main amd64 Packages
     1:23.3.4.7-1 500
        500 https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/deb/ubuntu focal/main amd64 Packages
     1:23.3.4.6-1 500
        500 https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/deb/ubuntu focal/main amd64 Packages
     1:23.3.4.5-1 500
        500 https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/deb/ubuntu focal/main amd64 Packages
     1:23.3.4.4-1 500
        500 https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/deb/ubuntu focal/main amd64 Packages
     1:23.3.4.3-1 500
        500 https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/deb/ubuntu focal/main amd64 Packages
     1:23.2.7-1 500
        500 https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/deb/ubuntu focal/main amd64 Packages

Revision history for this message
Przemyslaw Pycko (paj-co) said :
#5

Because I have run the rabbitmq-server installation script where I needed to specify the distro name:

"In order to set up an apt repository that provides the correct package, a few decisions have to be made. One is determining the distribution name. It often matches the Debian or Ubuntu release used" https://www.rabbitmq.com/install-debian.html#apt-quick-start-cloudsmith

And the latest supported was focal.

How then should I install `erlang-crypto` package correctly?
Should I run: `sudo apt install erlang-crypto=1:24.2.1+dfsg-1`?

If I ever do `sudo apt update` will it automatically update `erlang-crypto` version to latest dependent on `libssl1.1` and break the `rabbitmq-server` that depend on `erlang-crypto`?

Revision history for this message
Best Manfred Hampl (m-hampl) said :
#6

You are using a foreign repository outside the influence of Ubuntu.

If you remove https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang then you will get the version 1:24.2.1+dfsg-1 from the Ubuntu repository (in your case http://pl.archive.ubuntu.com/ubuntu jammy/main) which depends on libssl3.

There is the possibility to force the Ubuntu version with

sudo apt install erlang-crypto=1:24.2.1+dfsg-1

and then marking that version as held ("sudo apt-mark hold erlang-crypto), but I do not know whether this has implications for other packages from the rabbitmq-erlang repository.

Revision history for this message
Manfred Hampl (m-hampl) said :
#7

In my opinion rabbitmq might be contacted to request a separate repository for Ubuntu jammy with packages that depend on libssl3

Looking at https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/deb/ubuntu/dists/jammy/Release they seem to be already working on it, but there are no binary packages available yet.

Revision history for this message
Przemyslaw Pycko (paj-co) said :
#8

Thank you Manfred for guiding me to the solution!
I decided to go with distro specific install using / - I have run `sudo apt install erlang-crypto/jammy` and it worked!

Revision history for this message
Przemyslaw Pycko (paj-co) said :
#9

Thanks Manfred Hampl, that solved my question.

Revision history for this message
Przemyslaw Pycko (paj-co) said :
#10

I haven't tested the solution, was just happy that I managed to install the package. But it turned out that the rest of packages depend on specific `erlang-crypto` package - one from their repositories - so you where right!

Revision history for this message
Manfred Hampl (m-hampl) said :
#12

It seems that for the time being you have the following options:

- go back to the (older) version in the Ubuntu jammy repositories
- go back to Ubuntu focal and install the rabbitmq version for focal
- wait for rabbitmq that they provide a version that works with Ubuntu jammy

Revision history for this message
Przemyslaw Pycko (paj-co) said :
#13

Thanks!

I went with first option, from Ubuntu Jammy repository :)