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的镜像
来源:https://blog.csdn.net/weixin_38707040/article/details/98765898