在linux-mint 18上安装erlang-solutions时遇到错误Sarah

我正在尝试首次安装elixir,如此处https://elixir-lang.org/install.html#unix-and-unix-like所述。但是即使删除了先前下载的erlang-solutions程序包,我仍然遇到此错误。

 ~ $ wget https://packages.erlang-solutions.com/erlang-solutions_2.0_all.deb
--2019-11-16 13:18:53--  https://packages.erlang-solutions.com/erlang-solutions_2.0_all.deb
Resolving packages.erlang-solutions.com (packages.erlang-solutions.com)... 13.224.106.98,13.224.106.9,13.224.106.63,...
Connecting to packages.erlang-solutions.com (packages.erlang-solutions.com)|13.224.106.98|:443... connected.
HTTP request sent,awaiting response... 200 OK
Length: 6288 (6.1K)
Saving to: ‘erlang-solutions_2.0_all.deb.3’

erlang-solutions_2. 100%[===================>]   6.14K  --.-KB/s    in 0s      

2019-11-16 13:18:54 (660 MB/s) - ‘erlang-solutions_2.0_all.deb.3’ saved [6288/6288]

 ~ $ sudo dpkg -i erlang-solutions_2.0_all.deb
(Reading database ... 211574 files and directories currently installed.)
Preparing to unpack erlang-solutions_2.0_all.deb ...
Unpacking erlang-solutions (2.0) over (2.0) ...
Setting up erlang-solutions (2.0) ...
Can not detect version codename.
dpkg: error processing package erlang-solutions (--install):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 erlang-solutions
mmrldb 回答:在linux-mint 18上安装erlang-solutions时遇到错误Sarah

我的Debian 9.11部分也遇到了同样的问题。 问题出在/var/lib/dpkg/info/erlang-solutions.postinst中,您可以将set -e更改为set -x进行调试,并查看为什么它返回1,但是我已经下载了最新版本的https://www.erlang-solutions.com/resources/download.html,并且可以正常工作对我来说

,

似乎oscii中提到的安装后脚本:/var/lib/dpkg/info/erlang-solutions.postinst/etc/issue中列出的发行版转换为一个代号,该代号用于配置debian存储库。不幸的是,它只查找Debian,Ubuntu和Raspbian的标签和版本。

最简单的解决方案是将您的/etc/issue文件临时替换为您的发行版所基于的debian / ubuntu文件之一。

在我的情况下(基于Debian bullseye的SparkyLinux 6),该代号实际上并未包括在列表中,因此我针对特定情况迅速将代号“ bullseye”添加到了安装后脚本中。

再次运行sudo apt-get install,完成安装。

,

在基于Debian的系统上,您可能必须明确安装Erlang才能获取所有需要的软件包。

$ sudo apt install erlang

Checkout this PR

本文链接:https://www.f2er.com/3091013.html

大家都在问