Almost 90% of Linux installations do not have default domestic sources. This article will collect and organize methods for relatively complete and secure source replacement, in order to solve the problem of accelerating the updating of Linux mirrors in China.
System Version#
First, check the distribution version of the system:
The output is as follows:
This command is not applicable to all Linux distributions. If you cannot determine the distribution system, it is recommended to use this open-source project: Advanced System Information Tool neofetch installation method.
root@VPSServer:~# neofetch
.-/+oossssoo+/-. root@VPS107-GitServer
`:+ssssssssssssssssss+:` ---------------------
-+ssssssssssssssssssyyssss+- OS: Ubuntu 22.04.3 LTS x86_64
.ossssssssssssssssssdMMMNysssso. Host: KVM/QEMU (Standard PC (Q35 + ICH9, 2009)
/ssssssssssshdmmNNmmyNMMMMhssssss/ Kernel: 5.15.0-88-generic
+ssssssssshmydMMMMMMMNddddyssssssss+ Uptime: 1 hour, 43 mins
/sssssssshNMMMyhhyyyyhmNMMMNhssssssss/ Packages: 700 (dpkg), 4 (snap)
.ssssssssdMMMNhsssssssssshNMMMdssssssss. Shell: bash 5.1.16
+sssshhhyNMMNyssssssssssssyNMMMysssssss+ Terminal: /dev/pts/0
ossyNMMMNyMMhsssssssssssssshmmmhssssssso CPU: Intel Xeon W-1290 (2) @ 3.191GHz
ossyNMMMNyMMhsssssssssssssshmmmhssssssso GPU: 00:01.0 Vendor 1234 Device 1111
+sssshhhyNMMNyssssssssssssyNMMMysssssss+ Memory: 349MiB / 1963MiB
.ssssssssdMMMNhsssssssssshNMMMdssssssss.
/sssssssshNMMMyhhyyyyhdNMMMNhssssssss/
+sssssssssdmydMMMMMMMMddddyssssssss+
/ssssssss