sed -i 's/deb.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list
sed -i 's|security.debian.org/debian-security|mirrors.aliyun.com/debian-security|g' /etc/apt/sources.list
root@e4b82e40b6c6:/# apt update
Fetched 8195 kB in 1s (6489 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
apt install xfce4 gnome libreoffice vlc -d -y
0 upgraded, 1574 newly installed, 0 to remove and 0 not upgraded.
Need to get 1014 MB of archives.
After this operation, 3471 MB of additional disk space will be used.
Fetched 1014 MB in 2min 54s (5815 kB/s)
Download complete and in download only mode
测试结果 Fetched 1014 MB in 2min 54s (5815 kB/s)
华为
sed -i 's/deb.debian.org/mirrors.huaweicloud.com/g' /etc/apt/sources.list
sed -i 's|security.debian.org/debian-security|mirrors.huaweicloud.com/debian-security|g' /etc/apt/sources.list
apt update
root@659549fb7f12:/# apt update
Fetched 8194 kB in 2s (4766 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
apt install xfce4 gnome libreoffice vlc -d -y
0 upgraded, 1574 newly installed, 0 to remove and 0 not upgraded.
Need to get 1014 MB of archives.
After this operation, 3471 MB of additional disk space will be used.
Fetched 1014 MB in 1min 25s (12.0 MB/s)
Download complete and in download only mode
测试结果 Fetched 1014 MB in 1min 25s (12.0 MB/s)
汇总:
清华:2min 3s
中科大:37min 31s
163:7min 21s
某公司:2min 54s
华为:1min 25s
下载同样的包,使用华为的镜像源更快一点。当然这个结果也只是参考,这和本地的网络运营商,所处的地理位置也有关。之前我自己的测试环境服务器一直在使用某公司或者中科大的镜像站,今天一测才知道,华为的还快一点呢。
分享这个呢是想告诉大家,希望大家都能够用实践用数据来支撑自己的选择。