Ubuntu Apt-get update failed to resolve

Source: Internet
Author: User

When the following error occurs after running Apt-get update:

E:some index files failed to download, they has been ignored ....

Maybe the source of ubuntu16.04 is not good, we just need to change a source.

There are many sources of Ubuntu in China, including: NetEase source (this used before, fast), Ali, there are many sources of education network, such as: Tsinghua source, Zhong Ke source.

Execute command: sudo gedit/etc/apt/sources.list

Here is the source list of Zhong Ke ubuntu16.04, which can be obtained here: https://lug.ustc.edu.cn/repogen/

To edit the/etc/apt/sources.list file, add the following entry at the top of the file (make the appropriate backup before you do the operation):

Deb Http://mirrors.ustc.edu.cn/ubuntu/xenial main restricted universe multiverse
Deb Http://mirrors.ustc.edu.cn/ubuntu/xenial-security main restricted universe multiverse
Deb Http://mirrors.ustc.edu.cn/ubuntu/xenial-updates main restricted universe multiverse
Deb http://mirrors.ustc.edu.cn/ubuntu/xenial-proposed main restricted universe multiverse
Deb Http://mirrors.ustc.edu.cn/ubuntu/xenial-backports main restricted universe multiverse
DEB-SRC http://mirrors.ustc.edu.cn/ubuntu/xenial main restricted universe multiverse
DEB-SRC http://mirrors.ustc.edu.cn/ubuntu/xenial-security main restricted universe multiverse
DEB-SRC http://mirrors.ustc.edu.cn/ubuntu/xenial-updates main restricted universe multiverse
DEB-SRC http://mirrors.ustc.edu.cn/ubuntu/xenial-proposed main restricted universe multiverse
DEB-SRC http://mirrors.ustc.edu.cn/ubuntu/xenial-backports main restricted universe multiverse

Then enter:

sudo apt-get update

Update the source.

Ubuntu Apt-get update failed to resolve

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.