我正在尝试在新的 Ubuntu 18.04 计算机上安装 indy-node,以创建一个具有 4 个节点的小型网络。
当遵循installation instructions时我收到以下错误:
localhost:~$ sudo apt-get install indy-node
The following packages have unmet dependencies:
indy-node : Depends: indy-plenum (= 1.12.2) but it is not going to be installed
Depends: libsodium18 but it is not installable
E: Unable to correct problems, you have held broken packages.
我尝试安装 libsodium18
但出现以下错误:
Package libsodium18 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'libsodium18' has no installation candidate
同样,尝试安装 indy-plenum
也会出现一堆“未满足的依赖关系”错误。
**注意:*这一切都发生在以下存储库中:
sudo bash -c 'echo "deb https://repo.sovrin.org/deb xenial stable" >> /etc/apt/sources.list'
当我尝试添加 bionic 而不是 xenial 的软件包时,出现以下错误:
repository 'https://repo.sovrin.org/deb bionic InRelease' doesn't have the component 'stable'
我也尝试通过 python + pip 安装 indy-node,但这似乎也不起作用。
有人成功安装了 indy-node,如果是的话,你能分享一下 secret 吗?
最佳答案
我们已经使用 Ubuntu 18.04 为 Indy-Node 生成了 Docker 镜像,但必须从源代码构建 libsodium。您可以在此处查看源 dockerfile,尽管有 git URL 被构建脚本替换:https://github.com/PSPC-SPAC-buyandsell/von-image/blob/master/node-1.9/Dockerfile.ubuntu
最终图像位于 https://hub.docker.com/r/bcgovimages/von-image/tags (node-* 图像,最新的是 bcgovimages/von-image:node-1.12-2
)
我相信 Indy-Node 团队很快就会将测试中使用的图像更新到 20.04。
关于hyperledger - Indy-node 在 Ubuntu 上安装失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61011373/