我正在尝试在ubuntu 16.04.5版计算机上安装Rabbitmq。
我遵循了多种安装方式,但是每次都会遇到一些依赖问题。
我关注了
https://tecadmin.net/install-erlang-on-ubuntu/
和
How do I install a specific version of 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).
答案 0 :(得分:0)
遵循instructions at Erlang Solutions website可能会获得更好的结果。他们发布了所有流行的Ubuntu发行版的软件包。
答案 1 :(得分:0)
尝试从https://www.erlang-solutions.com/resources/download.html安装最新版本。在ubuntu 16.04上对我有用
答案 2 :(得分:0)
运行以下命令将解决该错误并成功安装erlang
echo 'deb https://packages.erlang-solutions.com/ubuntu xenial contrib' | sudo tee -a /etc/apt/sources.list
wget https://packages.erlang-solutions.com/ubuntu/erlang_solutions.asc
sudo apt-key add erlang_solutions.asc
apt update && apt install esl-erlang
答案 3 :(得分:0)
不幸的是,您似乎必须手动安装这些依赖项(例如,this solution)或使用 esl-erlang,它至少为您捆绑了一些依赖项。
后者至少对我的情况有效,我所缺少的只是 erlang-ftp
和 erlang-tftp
:
The following packages have unmet dependencies:
erlang : Depends: erlang-appmon
Depends: erlang-ftp but it is not going to be installed
Depends: erlang-gs
Depends: erlang-inviso
Depends: erlang-percept
Depends: erlang-pman
Depends: erlang-test-server
Depends: erlang-tftp but it is not going to be installed
Depends: erlang-toolbar
Depends: erlang-tv
Depends: erlang-typer
esl-erlang 只是完整的安装,如给定 here 的常见问题解答中所述。
简而言之,我的命令如下(对于 v.23.3.1):
apt-get install esl-erlang=1:23.3.1-1