Installing Erlang & RabbitMQ on debian - package issues

4812
user991710

I'm trying to get RabbitMQ setup, but something funky is going on with my dependencies. I'm running a Debian 7.1 that will be used as a server, hence has no desktop environment. I try to install rabbitmq-server using aptitude:

$ apt-get install rabbitmq-server Reading package lists... Done Building dependency tree Reading state information... Done Package rabbitmq-server is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source. E: Package 'rabbitmq-server' has no installation candidate 

Getting the .deb file from the RabbitMQ site yields the following dependency error:

$ dpkg -i rabbitmq-server_3.1.3-1_all.deb Selecting previously unselected package rabbitmq-server. (Reading database ... 31422 files and directories currently installed.) Unpacking rabbitmq-server (from rabbitmq-server_3.1.3-1_all.deb) ... dpkg: dependency problems prvent configuration of rabbitmq-server: rabbitmq-server depends on erlang-nox (>= 1:12.b.3) | esl-erlang; however: Package erlang-nox is not installed. Package esl-erlang is not installed. 

Trying to install erlang-nox by itself yields similar results:

$ apt-get install erlang-nox Reading package lists... Done Building dependency tree Reading state information... Done Package erlang-nox is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source. E: Package 'erlang-nox' has no installation candidate 

My sources list is the following:

$ cat /etc/apt/sources.list ... deb http://security.debian.org wheezy/updates main contrib deb-src http://security.debian.org wheezy/updates main contrib #deb http://www.rabbitmq.com/debian testing main 

The last line was added after I failed to install rabbiqmq-server through the above procedures, but did not work either.

I tried installing erlang manually (compiling and using make install), but rabbitmq still complained about it and would not install.

Any pointers as to what could possibly be wrong here?

1

1 ответ на вопрос

2
terdon

Your sources.list is missing the main Debian repository. Add this line to /etc/apt/sources.list and try installing rabbitmq-server again:

deb http://ftp.us.debian.org/debian stable main contrib non-free 

As you can see here, the rabbitmq-server is indeed in the main debian repository, so after adding the line above you should be able to install it with

sudo apt-get install rabbitmq-server 

Just make sure to choose a debian mirror that is close to you and edit the deb line accordingly.

Это сработало. Я должен был это понять, но как основной депозитарий не включается после чистой установки ОС? Возможно, это было исключено, когда я снял флажок со среды рабочего стола, но все еще довольно странно. Спасибо, и извините, что так поздно вернулись к вам. user991710 11 лет назад 0
@ user991710 Понятия не имею, это странно, может быть, изменения, которые вы внесли в какой-то момент? terdon 11 лет назад 0

Похожие вопросы