乌班图18.04安装RabbitMQ(一)安装erlang

本文详细记录了解决在Ubuntu系统上安装Erlang时遇到的依赖问题的过程,包括更新软件包列表、更换阿里云镜像源以及最终成功安装的步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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的镜像

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值