Ubuntu 18.04 Modifying the default source

Source: Internet
Author: User
Tags aliyun

After installing Ubuntu 18.04, the use of foreign sources is too slow, modified for domestic sources will be much faster.

Modify Ali to the default source for Ubuntu 18.04

Backup/etc/apt/sources.list

#备份cp /etc/apt/sources.list /etc/apt/sources.list.bak

Add the following entry in front of the/etc/apt/sources.list file

#添加阿里源deb http://mirrors. Aliyun. com/ubuntu/bionic Main restricted universe Multiversedeb http://mirrors. Aliyun. com/ubuntu/bionic-security Main restricted universe Multiversedeb http://mirrors. Aliyun. com/ubuntu/bionic-updates Main restricted universe Multiversedeb http://mirrors. Aliyun. com/ubuntu/bionic-proposed Main restricted universe Multiversedeb http://mirrors.aliyun.com/ubuntu/bionic-backports main Restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/bionic main restricted universe multiversedeb-src Http://mirrors.aliyun.com/ubuntu/bionic-security main restricted universe MULTIVERSEDEB-SRC http://mirrors.aliyun.com/ Ubuntu/bionic-updates main restricted universe multiversedeb-src http://mirrors.com/ubuntu/bionic-proposed main restricted universe multiversedeb-src http:/ /mirrors.aliyun.com/ubuntu/bionic-backports Main restricted universe multiverse            

Finally, execute the following command to update the source

##更新sudo apt-get updatesudo apt-get upgrade
    • 1
    • 2
    • 3

In addition several other domestic sources are as follows:
Zhong Ke Source

# #中科大源deb Https://mirrors. USTC. edu. cn/ubuntu/bionic Main restricted universe multiversedeb-src https://mirrors. USTC. edu. cn/ubuntu/bionic Main restricted universe Multiversedeb https://mirrors. USTC. edu. cn/ubuntu/bionic-updates Main restricted universe multiversedeb-src https://mirrors. USTC. edu. cn/ubuntu/bionic-updates Main restricted universe Multiversedeb https://mirrors. USTC. edu. cn/ubuntu/bionic-backports Main restricted universe multiversedeb-src https://mirrors. USTC.edu.cn/ubuntu/bionic-backports main restricted Universe Multiversedeb https://mirrors.ustc.edu< Span class= "Hljs-preprocessor" >.cn/ubuntu/bionic-security main restricted universe multiversedeb-src https://mirrors .ustc.edu.cn/ Ubuntu/bionic-security main restricted universe multiversedeb https://mirrors.ustc< Span class= "Hljs-preprocessor" >.edu.cn/ubuntu/bionic-proposed main restricted Universe multiversedeb-src https://mirrors.ustc.cn/ubuntu/bionic-proposed main restricted universe multiverse   

163 source

# #163源deb http:Mirrors.163.com/ubuntu/bionic main restricted Universe Multiversedeb http:Mirrors.163.com/ubuntu/bionic-security main restricted Universe Multiversedeb http://mirrors.163.com/ubuntu/bionic-updates main restricted universe Multiversedeb http://mirrors.163.com/ ubuntu/bionic-proposed main restricted Universe Multiversedeb http://mirrors.163.com/ubuntu/bionic-backports Main Restricted Universe Multiversedeb-src http://mirrors.163.com/ubuntu/bionic main restricted universe MULTIVERSEDEB-SRC http://mirrors.163.com/ubuntu/bionic-security main restricted universe MULTIVERSEDEB-SRC http: //mirrors.163.com/ubuntu/bionic-updates main restricted universe multiversedeb-src http://mirrors.163.com/ ubuntu/bionic-proposed main restricted Universe multiversedeb-src http://mirrors.163.com/ubuntu/ Bionic-backports main restricted universe multiverse       

Tsinghua Source

# #清华源deb Https://mirrors. Tuna. Tsinghua. edu. cn/ubuntu/bionic Main restricted universe multiversedeb-src https://mirrors. Tuna. Tsinghua. edu. cn/ubuntu/bionic Main restricted universe Multiversedeb https://mirrors. Tuna. Tsinghua. edu. cn/ubuntu/bionic-updates Main restricted universe multiversedeb-src https://mirrors. Tuna. Tsinghua. edu. cn/ubuntu/bionic-updates Main restricted universe Multiversedeb https://mirrors. Tuna. Tsinghua. edu. cn/ubuntu/bionic-backports Main restricted universe multiversedeb-src https://mirrors. Tuna. Tsinghua. edu. cn/ubuntu/bionic-backports Main restricted universe Multiversedeb https://mirrors. Tuna. Tsinghua. edu. cn/ubuntu/bionic-security main restricted universe multiversedeb-src https://mirrors. Tuna. Tsinghua.educn/ubuntu/bionic-security main restricted universe Multiversedeb https://mirrors. Tuna. Tsinghua.edu. cn/ubuntu/bionic-proposed main restricted universe multiversedeb-src https://mirrors . Tuna. Tsinghua.edu. cn/ubuntu/bionic-proposed main restricted universe multiverse  

Ubuntu 18.04 Modifying the default source

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.