나는 RabbitMQ를 설치하기 위해 다음 단계를 따르고 있습니다.우분투 16
echo "deb http://www.rabbitmq.com/debian/ testing main" | sudo tee /etc/apt/sources.list.d/rabbitmq.list > /dev/null
wget https://www.rabbitmq.com/rabbitmq-signing-key-public.asc
sudo apt-key add rabbitmq-signing-key-public.asc
sudo apt-get update
sudo apt-get install rabbitmq-server -y
sudo service rabbitmq-server start
sudo rabbitmq-plugins enable rabbitmq_management
sudo service rabbitmq-server restart
>> sudo apt-get install Rabbitmq-server -yi를 실행한 후 다음 오류가 발생합니다.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
rabbitmq-server : Depends: erlang-base (>= 1:21.3) but 1:18.3-dfsg-1ubuntu3.1 is to be installed or
erlang-base-hipe (>= 1:21.3) but it is not going to be installed or
esl-erlang (>= 1:21.3) but it is not installable
Depends: erlang-crypto (>= 1:21.3) but 1:18.3-dfsg-1ubuntu3.1 is to be installed or
esl-erlang (>= 1:21.3) but it is not installable
Depends: erlang-eldap (>= 1:21.3) but 1:18.3-dfsg-1ubuntu3.1 is to be installed or
esl-erlang (>= 1:21.3) but it is not installable
Depends: erlang-inets (>= 1:21.3) but 1:18.3-dfsg-1ubuntu3.1 is to be installed or
esl-erlang (>= 1:21.3) but it is not installable
Depends: erlang-mnesia (>= 1:21.3) but 1:18.3-dfsg-1ubuntu3.1 is to be installed or
esl-erlang (>= 1:21.3) but it is not installable
Depends: erlang-os-mon (>= 1:21.3) but 1:18.3-dfsg-1ubuntu3.1 is to be installed or
esl-erlang (>= 1:21.3) but it is not installable
Depends: erlang-parsetools (>= 1:21.3) but 1:18.3-dfsg-1ubuntu3.1 is to be installed or
esl-erlang (>= 1:21.3) but it is not installable
Depends: erlang-public-key (>= 1:21.3) but 1:18.3-dfsg-1ubuntu3.1 is to be installed or
esl-erlang (>= 1:21.3) but it is not installable
Depends: erlang-runtime-tools (>= 1:21.3) but 1:18.3-dfsg-1ubuntu3.1 is to be installed or
esl-erlang (>= 1:21.3) but it is not installable
Depends: erlang-ssl (>= 1:21.3) but 1:18.3-dfsg-1ubuntu3.1 is to be installed or
esl-erlang (>= 1:21.3) but it is not installable
Depends: erlang-syntax-tools (>= 1:21.3) but 1:18.3-dfsg-1ubuntu3.1 is to be installed or
esl-erlang (>= 1:21.3) but it is not installable
Depends: erlang-tools (>= 1:21.3) but 1:18.3-dfsg-1ubuntu3.1 is to be installed or
esl-erlang (>= 1:21.3) but it is not installable
Depends: erlang-xmerl (>= 1:21.3) but 1:18.3-dfsg-1ubuntu3.1 is to be installed or
esl-erlang (>= 1:21.3) but it is n
답변1
문제를 해결하는 첫 번째 단계는 명령의 효과를 되돌리는 것입니다.
첫 번째 명령부터 시작해 보겠습니다.
echo "deb http://www.rabbitmq.com/debian/ testing main" | sudo tee /etc/apt/sources.list.d/rabbitmq.list > /dev/null
파일을 생성하는 중입니다 /etc/apt/sources.list.d/rabbitmq.list
. 그래서 이 파일을 삭제하고 싶습니다. 파일을 삭제하려면 다음 명령을 실행하십시오.
sudo rm /etc/apt/sources.list.d/rabbitmq.list
다음 명령은 파일을 다운로드하는 것입니다.
wget https://www.rabbitmq.com/rabbitmq-signing-key-public.asc
파일이 다운로드된 위치를 아는 경우 파일을 삭제할 수 있습니다. 명령이 실행된 디렉터리에 다운로드되어야 합니다. 방금 터미널을 열었다면 홈 디렉터리에 있을 가능성이 매우 높습니다.
다음 명령은 apt-key를 사용하여 gpg 키를 추가하는 것입니다. 그래서 gpg 키를 제거해야 합니다. 이에 대한 답변 보기apt-key add -를 사용하여 추가한 GPG 키를 어떻게 제거할 수 있나요?.
이제 gpg 키를 제거했습니다. 당신은 실행해야sudo apt update
이제 공식 지침에 따라 RabbitMQ를 설치할 준비가 되었습니다.지침. 공식적인 지침은 가장 잘 구성되어 있지 않습니다. 그러나 나는 우분투 16.04에 대한 명령을 추출하려고 노력했습니다.
첫 번째 단계는 Erlang을 설치하는 것입니다. 다음 명령을 실행하십시오. 여기서는 명령을 복사하고 있습니다.링크.
curl -fsSL https://github.com/rabbitmq/signing-keys/releases/download/2.0/rabbitmq-release-signing-key.asc | sudo apt-key add -
sudo apt-get install apt-transport-https
echo "deb http://dl.bintray.com/rabbitmq-erlang/debian xenial erlang-22.x" > | sudo tee /etc/apt/sources.list.d/bintray.erlang.list > /dev/null
sudo apt-get update -y
sudo apt-get install -y erlang-base \
erlang-asn1 erlang-crypto erlang-eldap erlang-ftp erlang-inets \
erlang-mnesia erlang-os-mon erlang-parsetools erlang-public-key \
erlang-runtime-tools erlang-snmp erlang-ssl \
erlang-syntax-tools erlang-tftp erlang-tools erlang-xmerl
이제 Erlang이 설치되어 있어야 합니다. 이제 RabbitMQ를 설치할 수 있습니다. 다음을 실행해야합니다명령.
sudo apt-get install curl gnupg -y
curl -fsSL https://github.com/rabbitmq/signing-keys/releases/download/2.0/rabbitmq-release-signing-key.asc | sudo apt-key add -
echo "deb https://dl.bintray.com/rabbitmq/debian xenial main" | sudo tee /etc/apt/sources.list.d/bintray.rabbitmq.list
sudo apt-get update -y
sudo apt-get install -y rabbitmq-server
이제 RabbitMQ가 설치되어 있어야 합니다.