在Ubuntu上安装Erlang 24错误依赖项

5t7ly7z5  于 2022-12-08  发布在  Erlang
关注(0)|答案(1)|浏览(557)

我尝试使用以下命令安装Erlang:

wget https://packages.erlang-solutions.com/erlang-solutions_2.0_all.deb
sudo dpkg -i erlang-solutions_2.0_all.deb
sudo apt-get update
sudo apt install esl-erlang=1:24.3.3-1 cmake libsodium-dev libssl-dev build-essential

但这是我启动最后一个命令时的输出(错误):

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
build-essential is already the newest version (12.9ubuntu3).
cmake is already the newest version (3.22.1-1ubuntu1.22.04.1).
libssl-dev is already the newest version (3.0.2-0ubuntu1.7).
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:
 esl-erlang : Depends: libssl1.0.0 but it is not installable or
                       libssl1.0.2 but it is not installable or
                       libssl1.1 but it is not installable
E: Unable to correct problems, you have held broken packages.

我该如何解决这个问题?

vaj7vani

vaj7vani1#

libssl1.1是OpenSSL 1.1的一部分。它无法安装的原因是Ubuntu 22.04(Jammy Jellyfish)不再包含OpenSSL 1.1,只包含OpenSSL 3.0(对应包的名称为libssl3)。
尽管Erlang支持OpenSSL 3.0版本24.2,但任何二进制包都需要链接到正确的OpenSSL版本。查看the list of packages,Erlang解决方案库中专门为jammy构建的最早Erlang版本是25.0。
如果无法使用较新的Erlang发行版(或较旧的Ubuntu发行版),您可以通过键入apt install erlang来使用the official Ubuntu Erlang packagejammy包含24.2.1)。或者,您可以使用asdfits Erlang plugin安装所需的特定Erlang发行版。

相关问题