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
Table of contents 1. Introduction 2. Main text 2....
Table of contents introduce Example Summarize int...
Nginx (engine x) is a high-performance HTTP and r...
MySQL trigger simple example grammar CREATE TRIGG...
radio-and-checkbox Pure CSS to achieve radio and ...
Table of contents 1. Introduce according to the o...
Table of contents 1. What is a JavaScript engine?...
Table of contents 1. What is a design pattern? 2....
When developing for mobile devices, you often enc...
Ubuntu 20.04 does not have root login enabled by ...
Today, in the practice of vue3+vite project, when...
Docker error 1. Check the cause docker logs nexus...
<br />Forms are an important channel for use...
When working on a recent project, I found that th...
1) Introduction to cache mechanism In the Linux s...