安装 Rabit MQ 时遇到的问题

安装 Rabit MQ 时遇到的问题

当我使用以下命令时

sudo apt-get install rabbitmq-server

我收到以下缺少的包依赖项

Reading package lists... Done
Building dependency tree       
Reading state information... Done
rabbitmq-server is already the newest version.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
erlang-nox : Depends: erlang-base but it is not going to be installed or
                   erlang-base-hipe but it is not going to be installed
          Depends: erlang-asn1 but it is not going to be installed
          Depends: erlang-corba but it is not going to be installed
          Depends: erlang-crypto but it is not going to be installed
          Depends: erlang-diameter but it is not going to be installed
          Depends: erlang-docbuilder but it is not installable
          Depends: erlang-edoc but it is not going to be installed
          Depends: erlang-erl-docgen but it is not going to be installed
          Depends: erlang-eunit but it is not going to be installed
          Depends: erlang-ic but it is not going to be installed
          Depends: erlang-inets but it is not going to be installed
          Depends: erlang-inviso but it is not installable
          Depends: erlang-mnesia but it is not going to be installed
          Depends: erlang-odbc but it is not going to be installed
          Depends: erlang-os-mon but it is not going to be installed
          Depends: erlang-parsetools but it is not going to be installed
          Depends: erlang-percept but it is not going to be installed
          Depends: erlang-public-key but it is not going to be installed
          Depends: erlang-runtime-tools but it is not going to be installed
          Depends: erlang-snmp but it is not going to be installed
          Depends: erlang-ssh but it is not going to be installed
          Depends: erlang-ssl but it is not going to be installed
          Depends: erlang-syntax-tools but it is not going to be installed
          Depends: erlang-tools but it is not going to be installed
          Depends: erlang-webtool but it is not going to be installed
          Depends: erlang-xmerl but it is not going to be installed
 E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

我无法理解如何安装所有这些软件包,然后安装 Rabit-MQ

我也尝试下载

188金宝搏官网网址rabbitmq-server_3.5.6-1_all.deb

然后使用命令

 sudo dpkg -i rabbitmq-server_3.5.6-1_all.deb 

但我得到的输出是

 (Reading database ... 320808 files and directories currently installed.)
 Preparing to unpack rabbitmq-server_3.5.6-1_all.deb ...
Unpacking rabbitmq-server (3.5.6-1) over (3.5.6-1) ...
dpkg: dependency problems prevent configuration of rabbitmq-server:
 rabbitmq-server depends on erlang-nox (>= 1:13.b.3) | esl-erlang; however:
  Package erlang-nox is not configured yet.
  Package esl-erlang is not installed.

 dpkg: error processing package rabbitmq-server (--install):
 dependency problems - leaving unconfigured
 Processing triggers for man-db (2.7.0.2-2) ...
 Processing triggers for ureadahead (0.100.0-16) ...
 Errors were encountered while processing:
 rabbitmq-server

我做错了什么。

请指教!!

谢谢!!!!

答案1

您之所以会遇到所有这些未满足的依赖性错误,是因为您尝试在已达到使用寿命终止日期的 Ubuntu 版本上安装软件,因此不再受支持。明智的做法是备份您的数据并全新安装 Ubuntu 14.04,它也是像 Ubuntu 10.04 一样的长期支持版本。

或者,您可以全新安装 Ubuntu 15.10。Ubuntu 15.10 将于几天后的 10 月 22 日发布,其官方存储库中的 rabbitmq-server 版本与您尝试安装的版本几乎相同,因此如果您从 Ubuntu 15.10 中的 Ubuntu 软件中心安装 rabbitmq-server 3.5.4-1,肯定不会出现任何错误。

除了全新安装外,您还可以尝试按照以下说明将 Ubuntu 10.04 升级到 Ubuntu 14.04升级时我可以跳过版本吗?,但这可能会导致系统配置错误。

答案2

这个解决方案对我有用

添加此行:

deb http://packages.erlang-solutions.com/debian precise contrib

到:

/etc/apt/sources.list

然后在终端运行以下命令:

sudo apt-get update    
sudo apt-get install erlang-nox    
sudo apt-get install socat    
sudo wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.9/rabbitmq-server_3.6.9-1_all.deb    
sudo dpkg -i rabbitmq-server_3.6.9-1_all.deb

相关内容