我无法在我的 ubuntu 18.10 cosmic 系统上安装 erlang/Elixir
Posted
技术标签:
【中文标题】我无法在我的 ubuntu 18.10 cosmic 系统上安装 erlang/Elixir【英文标题】:I am unable to install erlang/Elixir on my ubuntu 18.10 cosmic system 【发布时间】:2020-09-28 05:57:20 【问题描述】:我正在关注类似 unix 的系统 https://elixir-lang.org/install.html#unix-and-unix-like
这是我遇到的错误
sudo apt-get install esl-erlang
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:
esl-erlang : Depends: libncurses5 but it is not installable
Depends: libsctp1 but it is not installable
Recommends: erlang-mode but it is not going to be installed
E: Unable to correct problems, you have held broken packages
我也尝试过使用 asdf-vm,但仍然存在同样的 libcurses5 问题
asdf install erlang 21.1
asdf_21.1 is not a kerl-managed Erlang/OTP installation
No build named asdf_21.1
Downloading OTP-21.1.tar.gz to /home/superuser/.asdf/plugins/erlang/kerl-home/archives
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 120 100 120 0 0 241 0 --:--:-- --:--:-- --:--:-- 241
100 51.3M 0 51.3M 0 0 4747k 0 --:--:-- 0:00:11 --:--:-- 3990k
Extracting source code
Building Erlang/OTP 21.1 (asdf_21.1), please wait...
WARNING: It appears that a required development package 'libncurses5-dev' is not installed.
Configure failed.
checking whether lock counters should be enabled... no
checking whether dlopen() needs to be called before first call to dlerror()... no
checking for kstat_open in -lkstat... (cached) no
checking for tgetent in -ltinfo... no
checking for tgetent in -lncurses... no
checking for tgetent in -lcurses... no
checking for tgetent in -ltermcap... no
checking for tgetent in -ltermlib... no
configure: error: No curses library functions found
【问题讨论】:
似乎 apt-get 出于某种原因试图为错误的 Ubuntu 版本下载软件包。您可以尝试的一件事是从erlang-solutions.com/resources/download.html 下载正确的文件并使用dpkg -i esl-erlang-XXX.deb
安装它。
非常感谢您的回复,但我试过了,类似的问题出现了pastebin.com/d6mUU3WD
解决了..还是谢谢
【参考方案1】:
问题在于,对于 cosmic,http://archive.ubuntu.com 上的存储库不可用。
在 /etc/apt/sources.list 中更改它们,即将所有出现的 http://archive.ubuntu.com 替换为 http://old-releases.ubuntu.com 就可以了。
【讨论】:
您可以在 vim 中使用 :%s/以上是关于我无法在我的 ubuntu 18.10 cosmic 系统上安装 erlang/Elixir的主要内容,如果未能解决你的问题,请参考以下文章
Mongodb Compass 无法在 Ubuntu 18.10 中打开
Ubuntu 18.10 mod_rewrite 似乎不起作用
Ubuntu 18.10 使用VMware克隆后,克隆后的机器再手动更改interfaces配置文件后无法启动网络的解决办法