When installing ethereum/Ethereum on Ubuntu 16.04, I encountered a Failed to fetch solution when I encountered sudo apt-get update.
When you search for "installation tutorial for ethereum on Ubuntu 16.04" on csdn, you will see the installation process given by the boss
sudo apt-get install software-properties-common
sudo add-apt-repository -y ppa:ethereum/ethereum
sudo apt-get update
sudo apt-get install ethereum
I saw this and went to install it with great interest, and then encountered the Failed to fetch problem in the third step of sudo apt-get update
In the process of searching for solutions, netizens also found solutions
The first is to add DNS
sudo vim /etc/resolv.conf
After installing vim on your ubuntu, enter the above command and add the DNS you want to add after the text. The
format is nameserver 172.5.5.5 .
The second is to replace the source with Alibaba Cloud or Tsinghua
sudo gedit /etc/apt/sources.list
This is your original source
(it’s better to make a backup before changing the source).
Here is the source of Tsinghua,
https://mirror.tuna.tsinghua.edu.cn/help/ubuntu/Alibaba
Cloud’s source is also available online. All can be found. The
method of
adding is to copy the source you want to add after entering the above command, then save and close it (after copying, click Close and you will be prompted to save)
but! ! ! !
But these two methods did not solve the problem of Failed to fetch I encountered.
After asking the seniors how to solve them, here is the method I used (with the consent of the seniors)
No need to add DNS, no need to change source! ! !
The problem of Failed to fetch is actually that
you ca n’t connect to the web site. First, you must learn to access the Internet
. 1. Open your Internet software
. 2. Find the icon in the lower right corner and right-click on "Options."
3. Then in the opened settings, "Find Allow from LAN Connect” to tick this option.
4. Open Network/Network in your Ubuntu 16.04. Change
Method/ to manual
in the Network proxy/Network proxy column . Enter your own ip address in the following four boxes and
click Apply.
The method to check the IP address of the win10 system is also put here for everyone.
Search cmd in the lower left corner
Open the command prompt
and enter ipconfig/all to see the
ipv4 address under ip
Finally, enter sudo apt-get update in your Ubuntu16.04 terminal, and
Failed to fetch will not appear.
Thanks for seeing here! ! !