乌班图18.04安装RabbitMQ

人走茶凉 提交于 2019-11-26 06:27:53

1.安装erlang

sudo apt-get install erlang-nox

 然后结果提示说缺少下列包,分析了下,是因为没有执行sudo apt-get updtae导致的,但是,执行之后发现还是有这个问题

 

The following packages have unmet dependencies:
 erlang-nox : Depends: erlang-crypto
              Depends: erlang-diameter but it is not going to be installed
              Depends: erlang-edoc
              Depends: erlang-eldap but it is not going to be installed
              Depends: erlang-erl-docgen
              Depends: erlang-inets
              Depends: erlang-odbc
              Depends: erlang-os-mon
              Depends: erlang-percept
              Depends: erlang-public-key
              Depends: erlang-snmp
              Depends: erlang-ssh
              Depends: erlang-ssl
              Depends: erlang-tools
E: Unable to correct problems, you have held broken packages.

然后看了眼sudo apt-get update的执行结果,没有包更新。。。怀疑是源有问题,于是更换了乌班图的源

sudo vi /etc/apt/sources.list 

然后将里面的源替换成官方阿里源,内容如下,保存,退出

deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse

重新执行下面俩语句

sudo apt-get update
sudo apt-get install erlang-nox

大功告成。。。。差点心灰意冷地尝试安装centos的镜像

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!