我第一次尝试安装 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
最佳答案
我的 Debian 9.11 部分遇到了同样的问题。
问题是在 /var/lib/dpkg/info/erlang-solutions.postinst
你可以改变 set -e
到 set -x
到调试并查看为什么它返回 1,但我已经下载了最新版本的 https://www.erlang-solutions.com/resources/download.html它对我来说工作正常
关于package - 在 linux-mint 18 Sarah 上安装 erlang-solutions 时遇到错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58888788/