00. Catalog
Article directory
01. Overview of software sources
After Ubuntu is installed, the default official source is the US server, but the US server will have relatively large restrictions on installing software in China. So we need to switch the default source to domestic source.
Generally speaking, commonly used domestic sources include Aliyuan (this is the official Chinese source), NetEase and Sohu, etc.
In addition, there are sources of universities, such as Tsinghua University, University of Science and Technology of China, Zhejiang University and so on.
If you are a student at school, you can update and install the software very quickly if you switch to the source within your school.
If it is a non-campus network, Aliyuan is the most recommended.
02. Software source setting - method 1
2.1 Open Software and Update
2.2 Click to download from
2.3 Select other
2.4 Select Alibaba Cloud server
2.5 Click to close
2.6 Click to reload
2.7 Execution in the terminalsudo apt update
2.8 Testing
deng@local:~/桌面$ sudo apt install net-tools
03. Software source setting - method 2
3.1 Back up the original software source configuration file
deng@local:~/桌面$ sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
3.2 Open the official website of Tsinghua Mirror Source , enter in the search box Ubuntu
, and then the window will filter out Ubuntu
links about
3.3 Among the selected links, you will find a ? on the upper right of the link Ubuntu, click it to enter the following interface
3.4 Ubuntu's software source configuration files are /etc/apt/sources.list
. Make a backup of the file that comes with the system, replace the file with the following content, and you can use the selected software source image.
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse
# deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-security main restricted universe multiverse
# # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-security main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
# deb-src http://security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
# 预发布软件源,不建议启用
# deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse
# # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse
3.5 Copy the output image source link list, then replace all the content in the Sources.list file with the copied content, and then click Save
3.5 Open the terminal (it can be opened anywhere), and enter the following command to refresh the software
deng@local:~/桌面$ sudo apt update
04. Technical discussion
Interested enthusiasts in IoT, embedded, C++, C direction, etc. can add WX to communicate together. Click the private message on the homepage to add blogger WeChat.
05. Appendix
6.1 Alibaba Cloud
http://mirrors.aliyun.com/ubuntu/
6.2 Netease source
http://mirrors.163.com/ubuntu/
6.3 Zhejiang University
http://mirrors.zju.edu.cn/ubuntu
6.4 University of Science and Technology of China
http://mirrors.ustc.edu.cn/ubuntu/
6.5 Tsinghua source
http://mirrors.tuna.tsinghua.edu.cn/ubuntu/