我正在我的ubuntu16.04.5版机器上安装rabbitmq。
我遵循了多种安装方式,但每次都会遇到一些依赖关系问题。
我跟着
https://tecadmin.net/install-erlang-on-ubuntu/
以及
如何安装特定版本的erlang?
每次我都收到相同的错误:
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
erlang : Depends: erlang-diameter but it is not going to be installed
Depends: erlang-eldap but it is not going to be installed
Depends: erlang-ftp but it is not going to be installed
Depends: erlang-tftp but it is not going to be installed
Recommends: erlang-jinterface but it is not going to be installed
Recommends: erlang-ic-java but it is not going to be installed
Recommends: erlang-mode but it is not going to be installed
Recommends: erlang-src but it is not going to be installed
Recommends: erlang-examples but it is not going to be installed
esl-erlang : Depends: libwxbase2.8-0 but it is not installable or
libwxbase3.0-0 but it is not installable or
libwxbase3.0-0v5 but it is not going to be installed
Depends: libwxgtk2.8-0 but it is not installable or
libwxgtk3.0-0 but it is not installable or
libwxgtk3.0-0v5 but it is not going to be installed
Depends: libsctp1 but it is not going to be installed
Recommends: erlang-mode but it is not going to be installed
rabbitmq-server : Depends: erlang-base (>= 1:20.3) but it is not going to be installed or
erlang-base-hipe (>= 1:20.3) or
esl-erlang (>= 1:20.3)
Depends: erlang-crypto (>= 1:20.3) or
esl-erlang (>= 1:20.3)
Depends: erlang-eldap (>= 1:20.3) but it is not going to be installed or
esl-erlang (>= 1:20.3)
Depends: erlang-inets (>= 1:20.3) or
esl-erlang (>= 1:20.3)
Depends: erlang-mnesia (>= 1:20.3) or
esl-erlang (>= 1:20.3)
Depends: erlang-os-mon (>= 1:20.3) or
esl-erlang (>= 1:20.3)
Depends: erlang-parsetools (>= 1:20.3) or
esl-erlang (>= 1:20.3)
Depends: erlang-public-key (>= 1:20.3) or
esl-erlang (>= 1:20.3)
Depends: erlang-runtime-tools (>= 1:20.3) or
esl-erlang (>= 1:20.3)
Depends: erlang-ssl (>= 1:20.3) or
esl-erlang (>= 1:20.3)
Depends: erlang-syntax-tools (>= 1:20.3) or
esl-erlang (>= 1:20.3)
Depends: erlang-tools (>= 1:20.3) or
esl-erlang (>= 1:20.3)
Depends: erlang-xmerl (>= 1:20.3) or
esl-erlang (>= 1:20.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).
2条答案
按热度按时间ergxz8rk1#
运行以下命令将解决错误并成功安装erlang
gywdnpxw2#
不幸的是,看起来你要么必须手动安装这些依赖项(例如this solution),要么使用esl-erlang,它至少为你捆绑了其中的一部分。
后者至少对我的情况有效,我所缺少的只是
erlang-ftp
和erlang-tftp
:esl-erlang只是完整的安装,如here常见问题解答中所述。
简而言之,我的命令如下所示(对于v.23.3.1):