简体   繁体   English

安装以太坊时发生错误:软件包“ ethereum”没有候选安装

[英]Error when Installing Ethereum: Package 'ethereum' has no installation candidate

I am installing Ethereum on Ubuntu 17.10 following the steps in this article: https://medium.com/@mvmurthy/full-stack-hello-world-voting-ethereum-dapp-tutorial-part-2-30b3d335aa1f 我正在按照本文中的步骤在Ubuntu 17.10上安装以太坊: https ://medium.com/@mvmurthy/full-stack-hello-world-voting-ethereum-dapp-tutorial-part-2-30b3d335aa1f

But when executing the following command: 但是执行以下命令时:

sudo apt-get install ethereum

I get the following: 我得到以下内容:

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

It seems that there is a compatibility issue with the last stable version of Ethereum and Ubuntu 17.10; 以太坊和Ubuntu 17.10的最后一个稳定版本似乎存在兼容性问题。 and the latest unstable version could be installed with no issues: 并且可以毫无问题地安装最新的不稳定版本:

sudo apt-get install ethereum-unstable

However, this means that in the next stable version of Ethereum there will be no issues. 但是,这意味着在以太坊的下一个稳定版本中将没有任何问题。

Have you added the Ethereum repository? 您是否添加了以太坊存储库? If not, try the following: 如果没有,请尝试以下操作:

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

have you tried common software properties first use this command to install this 您是否尝试过常用软件属性,请先使用此命令进行安装

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

and then use ethereum ppa 然后使用以太坊ppa

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

(3) sudo apt-get update (3)sudo apt-get更新

(4) sudo apt-get install ethereum (4)sudo apt-get安装以太坊

Installing an unstable version of ethereum package does not seem like a good idea. 安装不稳定版本的ethereum软件包似乎不是一个好主意。

Considering that package is only about installing a bunch of binaries (geth, swarm and other ethereum tools) into your filesystem. 考虑该软件包仅是将一堆二进制文件(geth,swarm和其他以太坊工具)安装到文件系统中。 I would suggest to download the latest stable version directly from ethereum CDN servers or compile them yourself following the instructions described at their official github repo 我建议直接从以太坊CDN服务器下载最新的稳定版本,或按照其官方github回购中描述的说明自行编译它们。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM