I am trying to install elixir for the first time as mentioned in here https://elixir-lang.org/install.html#unix-and-unix-like. But I am getting this error even after I removed the previous downloaded erlang-solutions package.
~ $ 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
3条答案
按热度按时间mu0hgdu01#
我的Debian 9.11部分也有同样的问题。问题是在
/var/lib/dpkg/info/erlang-solutions.postinst
中,您可以将set -e
更改为set -x
来调试,并查看为什么它返回1,但我已经下载了最新版本的https://www.erlang-solutions.com/resources/download.html,它对我来说工作正常m528fe3b2#
在基于Debian的系统上,你可能需要显式地安装Erlang来获得所有需要的软件包。
Checkout this PR
voj3qocg3#
oscii提到的安装后脚本似乎是:
/var/lib/dpkg/info/erlang-solutions.postinst
将/etc/issue
中列出的发行版转换成一个codename,它反过来被用来配置一个debian仓库。不幸的是,它只查找Debian,Ubuntu和Raspbian标签和版本。最简单的解决方案是用发行版所基于的debian/ubuntu文件临时替换您的
/etc/issue
文件。在我的例子中(SparkyLinux 6,基于Debian bullseye),该代码名实际上并没有包括在列表中,所以我很快就把代码名“bullseye”添加到了我的特定情况的安装后脚本中。
再次运行
sudo apt-get install
,完成安装。