如何修复 ubuntu 上 Erlang 未满足的依赖关系?

如何修复 ubuntu 上 Erlang 未满足的依赖关系?
sudo apt-get purge --auto-remove erlang 

以及其他类似节点的包

错误:

Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 rabbitmq-server : Depends: erlang-base (>= 1:19.3) but 1:18.3-dfsg-1ubuntu3.1 is to be installed or
                            erlang-base-hipe (>= 1:19.3) or
                            esl-erlang (>= 1:19.3)
                   Depends: erlang-crypto (>= 1:19.3) or
                            esl-erlang (>= 1:19.3)
                   Depends: erlang-eldap (>= 1:19.3) but 1:18.3-dfsg-1ubuntu3.1 is to be installed or
                            esl-erlang (>= 1:19.3)
                   Depends: erlang-inets (>= 1:19.3) or
                            esl-erlang (>= 1:19.3)
                   Depends: erlang-mnesia (>= 1:19.3) or
                            esl-erlang (>= 1:19.3)
                   Depends: erlang-os-mon (>= 1:19.3) or
                            esl-erlang (>= 1:19.3)
                   Depends: erlang-parsetools (>= 1:19.3) or
                            esl-erlang (>= 1:19.3)
                   Depends: erlang-public-key (>= 1:19.3) or
                            esl-erlang (>= 1:19.3)
                   Depends: erlang-runtime-tools (>= 1:19.3) or
                            esl-erlang (>= 1:19.3)
                   Depends: erlang-ssl (>= 1:19.3) or
                            esl-erlang (>= 1:19.3)
                   Depends: erlang-syntax-tools (>= 1:19.3) or
                            esl-erlang (>= 1:19.3)
                   Depends: erlang-tools (>= 1:19.3) or
                            esl-erlang (>= 1:19.3)
                   Depends: erlang-xmerl (>= 1:19.3) or
                            esl-erlang (>= 1:19.3)
                   Depends: socat but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

答案1

安装旧版本后,我手动在其网站上添加最新的 erlang repo,但还是遇到了同样的错误elixir。删除旧版本对我有帮助:

sudo apt-get purge elixir
sudo apt-get purge erlang

清除后,我可以成功安装:

sudo apt-get install esl-erlang

相关内容