安装Ethereum时出错:软件包'ethereum'没有安装候选项。

8
我正在按照这篇文章的步骤在Ubuntu 17.10上安装Ethereum:https://medium.com/@mvmurthy/full-stack-hello-world-voting-ethereum-dapp-tutorial-part-2-30b3d335aa1f
但是当执行以下命令时:
sudo apt-get install ethereum

我收到了以下内容:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package ethereum 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 'ethereum' has no installation candidate
4个回答

7

最新稳定版的以太坊与Ubuntu 17.10存在兼容性问题,但最新的不稳定版本可以无障碍安装:

sudo apt-get install ethereum-unstable

然而,这意味着在下一个稳定版本的以太坊中将不会有任何问题。

1
在这里也有描述:https://github.com/ethereum/go-ethereum/issues/24444#issuecomment-1049675403 :( - Eliezer Steinbock

6

你是否添加了Ethereum仓库?如果没有,请尝试以下步骤:

sudo apt-get install software-properties-common
sudo add-apt-repository -y ppa:ethereum/ethereum
sudo apt-get update
sudo apt-get install ethereum

如问题所述:sudo apt-get install ethereum未能正常工作! - Muhammad Altabba
如果您没有按照上述提到的方式添加存储库,则安装以太坊可能无法正常工作。因此,尽管写得不好,但这是一个有效的答案。 - Totem
1
请注意,在撰写本文时,sudo apt install ethereum在较新版本的Ubuntu上无法使用。您可以尝试使用ethereum-unstable。 - Totem

2

您是否尝试过常用的软件属性?

首先使用以下命令进行安装:

(1) sudo apt-get install software-properties-common

然后使用以太坊ppa:

(2) sudo add-apt-repository -y ppa:ethereum/ethereum

(3) sudo apt-get update

(4) sudo apt-get install ethereum


尝试逐步执行所有步骤。 - Ishwar Chandra Tiwari

1
安装不稳定版本的ethereum包似乎不是一个好主意。
考虑到该软件包只是将一堆二进制文件(geth、swarm和其他以太坊工具)安装到您的文件系统中。我建议直接从以太坊CDN服务器下载最新的稳定版本,或按照官方github repo中描述的说明自行编译。

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接