Introduction The default source of Ubuntu is not a domestic server, so downloading updated software is slow. This article describes how to set up a source list and select a faster source to save download time. Configuration steps 1. Backup source list sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup 2. Select the appropriate source, replace the contents of the original file, and save the edited file Take Alibaba Cloud's update server as an example (from the actual test results, I personally think Alibaba Cloud is faster than NetEase and Sohu's servers): deb http://mirrors.aliyun.com/ubuntu/ XXXXX main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ XXXXX-security main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ XXXXX-updates main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ XXXXX-proposed main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ XXXXX-backports main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ XXXXX main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ XXXXX-security main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ XXXXX-updates main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ XXXXX-proposed main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ XXXXX-backports main restricted universe multiverse Depending on the specific Ubuntu version you are using, replace XXXXX in the above text with the string of the corresponding version below:
3. Refresh the list sudo apt-get update After the update is complete, when you install the source again, the source package will be downloaded from the new server. Remark: Ubuntu 16.04 TLS version image source: # By default, the source mirror is commented out to increase the speed of apt update. You can uncomment it if necessary. deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted universe multiverse # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted universe multiverse # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted universe multiverse # Pre-release software source, not recommended to enable # deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse Summarize This is the end of this article on how to modify Ubuntu's source list. For more information about modifying Ubuntu's source list, please search 123WORDPRESS.COM's previous articles or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: uni-app implements NFC reading function
>>: Summary of MySql import and export methods using mysqldump
Examples: Through the PHP background code, you ca...
Table of contents The first method: When the MySQ...
1. Change password 1. Modify the password of ordi...
Preface In many cases, we will use virtual machin...
This article example shares the specific code of ...
Preface JavaScript is one of the widely used lang...
Preface Previously, static IPs assigned using pip...
Table of contents 1. Simple to use 2. Use DISTINC...
Download and install JDK Step 1: First download t...
Table of contents 1. Title 2. Code 3. Results IV....
Question 1: The writing method that will report a...
Table of contents Preface text 1. Global Registra...
There are two installation methods for MySQL: msi...
Click here to return to the 123WORDPRESS.COM HTML ...
In the past few days, I have studied how to run s...