Error when Installing Ethereum: Package 'ether

2019-07-10 09:51发布

问题:

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

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

回答1:

It seems that there is a compatibility issue with the last stable version of Ethereum and 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.



回答2:

have you tried common software properties first use this command to install this

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

and then use ethereum ppa

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

(3) sudo apt-get update

(4) sudo apt-get install ethereum



回答3:

Installing an unstable version of ethereum package does not seem like a good idea.

Considering that package is only about installing a bunch of binaries (geth, swarm and other ethereum tools) into your filesystem. 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



回答4:

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