我正试图第一次安装灵丹妙药,正如这里提到的https://elixir-lang.org/install.html#unix-and-unix-like。但是,即使在删除了之前下载的erlang解决方案包之后,我仍然会收到这个错误。
~ $ 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发布于 2020-01-19 20:18:32
我的Debian 9.11部分也有同样的问题。问题在于,在/var/lib/dpkg/info/erlang-solutions.postinst中,您可以将set -e更改为set -x来调试,并查看它为什么返回1,但是我已经下载了最新版本的https://www.erlang-solutions.com/resources/download.html,它对我是正确的。
发布于 2020-05-10 09:23:08
发布于 2020-01-21 21:27:06
骨科:/var/lib/dpkg/info/erlang-solutions.postinst所提到的postinstall脚本似乎将/etc/issue中列出的发行版转换为代码名,然后用于配置debian存储库。不幸的是,它只查找Debian、Ubuntu和Raspbian标签和版本。
最简单的解决方案是将您的/etc/issue文件临时替换为您的发行版所基于的debian/ubuntu文件之一。
在我的例子中(基于Debian斗牛眼的SparkyLinux 6 ),这个代号实际上并没有包括在列表中,所以我很快将代码名"bullseye“添加到postinstall脚本中,以适应我的特定情况。
再次运行sudo apt-get install,完成安装。
https://stackoverflow.com/questions/58888788
复制相似问题