Ubuntu16 Apt-get Change to Ali

Source: Internet
Author: User
Tags aliyun

1. Backup system comes with source

MV /etc/apt/sources.list/etc/apt/sources.list.bak

2. Modify the/etc/apt/sources.list file

Vim/etc/apt/sources.list

Add the following:

1DEB-SRC http://archive.ubuntu.com/ubuntu xenial main restricted #Added by Software-properties2Deb http://mirrors.aliyun.com/ubuntu/xenial main restricted3DEB-SRC http://mirrors.aliyun.com/ubuntu/xenial main restricted Multiverse Universe #Added by Software-properties4Deb http://mirrors.aliyun.com/ubuntu/xenial-updates main restricted5DEB-SRC http://mirrors.aliyun.com/ubuntu/xenial-updates main restricted Multiverse Universe #Added by Software-properties6Deb http://Mirrors.aliyun.com/ubuntu/xenial Universe7Deb http://Mirrors.aliyun.com/ubuntu/xenial-updates Universe8Deb http://mirrors.aliyun.com/ubuntu/xenial Multiverse9Deb http://mirrors.aliyun.com/ubuntu/xenial-updates MultiverseTenDeb http://mirrors.aliyun.com/ubuntu/xenial-backports main restricted universe multiverse OneDEB-SRC http://mirrors.aliyun.com/ubuntu/xenial-backports main restricted universe Multiverse #Added by Software-properties ADeb http://Archive.canonical.com/ubuntu xenial Partner -DEB-SRC http://Archive.canonical.com/ubuntu xenial Partner -Deb http://mirrors.aliyun.com/ubuntu/xenial-security main restricted theDEB-SRC http://mirrors.aliyun.com/ubuntu/xenial-security main restricted Multiverse Universe #Added by Software-properties -Deb http://Mirrors.aliyun.com/ubuntu/xenial-security Universe -Deb http://mirrors.aliyun.com/ubuntu/xenial-security Multiverse

3. The update takes effect

Apt-get Update

Ubuntu16 Apt-get Change to Ali

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.