Modify Ubuntu's Apt-get source to Aliyun

Source: Internet
Author: User
Tags aliyun

1. Back up original source files

sudo cp/etc/apt/source.list/etc/apt/source.list.bak

2. Edit Source list file

sudo vim/etc/apt/source.list

3. Delete the original list and add the following

The following is the apt-get source for Aliyun Ubuntu 14.04

Deb Http://mirrors.aliyun.com/ubuntu/trusty main restricted universe multiverse Deb http://mirrors.aliyun.com/ubuntu/ Trusty-security main restricted Universe Multiverse Deb Http://mirrors.aliyun.com/ubuntu/trusty-updates main Restricted Universe Multiverse Deb http://mirrors.aliyun.com/ubuntu/trusty-proposed main restricted universe Multiverse Deb Http://mirrors.aliyun.com/ubuntu/trusty-backports main restricted universe multiverse deb-src http:// Mirrors.aliyun.com/ubuntu/trusty main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ Trusty-security main restricted universe Multiverse deb-src Http://mirrors.aliyun.com/ubuntu/trusty-updates main Restricted Universe Multiverse deb-src http://mirrors.aliyun.com/ubuntu/trusty-proposed main restricted universe Multiverse deb-src http://mirrors.aliyun.com/ubuntu/trusty-backports main restricted universe multiverse Deb http:// Mirrors.aliyuncs.com/ubuntu/trusty main restricted universe multiverse Deb Http://mirRors.aliyuncs.com/ubuntu/trusty-security main restricted universe multiverse Deb http://mirrors.aliyuncs.com/ubuntu/ Trusty-updates main restricted Universe Multiverse Deb Http://mirrors.aliyuncs.com/ubuntu/trusty-proposed main Restricted Universe Multiverse Deb Http://mirrors.aliyuncs.com/ubuntu/trusty-backports main restricted universe Multiverse deb-src http://mirrors.aliyuncs.com/ubuntu/trusty main restricted universe multiverse deb-src http:// Mirrors.aliyuncs.com/ubuntu/trusty-security main restricted universe multiverse deb-src http://mirrors.aliyuncs.com/ Ubuntu/trusty-updates main restricted universe multiverse deb-src http://mirrors.aliyuncs.com/ubuntu/trusty-proposed Main restricted universe Multiverse deb-src http://mirrors.aliyuncs.com/ubuntu/trusty-backports main restricted Universe Multiverse

4. Run sudo apt-get update updates source files other

1. Run command substitution source

Sed-i ' s/archive.ubuntu.com/mirrors.ustc.edu.cn/g '/etc/apt/sources.list

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.