Esta é a saída desudo apt install erlang
Reading package lists... Done
Building dependency tree... Done
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:
erlang-base : Depends: libc6 (>= 2.38) but 2.35-0ubuntu3.9 is to be installed
Conflicts: erlang (< 1:27.2.2-1) but 1:24.2.1+dfsg-1ubuntu0.1 is to be installed
erlang-crypto : Depends: libssl3t64 (>= 3.0.0) but it is not installable
erlang-odbc : Depends: libc6 (>= 2.38) but 2.35-0ubuntu3.9 is to be installed
erlang-os-mon : Depends: libc6 (>= 2.38) but 2.35-0ubuntu3.9 is to be installed
erlang-runtime-tools : Depends: libc6 (>= 2.38) but 2.35-0ubuntu3.9 is to be installed
erlang-wx : Depends: libstdc++6 (>= 13.1) but 12.3.0-1ubuntu1~22.04 is to be installed
Depends: libwxbase3.2-1t64 (>= 3.2.4+dfsg) but it is not installable
Depends: libwxgtk-gl3.2-1t64 (>= 3.2.4+dfsg) but it is not installable
Depends: libwxgtk-webview3.2-1t64 (>= 3.2.4+dfsg) but it is not installable
Depends: libwxgtk3.2-1t64 (>= 3.2.4+dfsg) but it is not installable
E: Unable to correct problems, you have held broken packages.
Pelo que entendi, libc6 está vinculado à sua versão do Ubuntu. Estou no PopOS e atualmente está no Jammy Jellyfish, que é o mais recente para PopOS, então libc6 está 2.35
no meu sistema. Erlang depende de libc6 2.38
e acima, mas não é aconselhável atualizar libc6 para uma versão superior, pois isso quebrará meu sistema. Quais são minhas opções para poder baixar Erlang e usar RabbitMQ? Além de esperar que o PopOS libere uma atualização para Noble Numbat.
A solução foi instalar as dependências do erlang que fazem parte do
1:24.2.1+dfsg-1ubuntu0.1
lançamento executandoIsso instalará todos os erlang daquela versão. Todos os pacotes erlang daquela versão dependem da
libc6
versão2.34
e acima e meu sistema está2.34
fazendo isso perfeitamente. Então eu preciso instalar o erlang em si. Então eu posso instalar o rabbitmq com este comando:Os lançamentos como
3.9.13-1ubuntu0.2
são retirados diretamente do repositório de pacotes do Ubuntu . Eu só tive que filtrar por pacotes no lançamento do Jammy Jellyfish.