Ubuntu Linux mirrors list 软件源列表
- 2024-10-30 23:12:00
- 丁国栋
- 原创 75
根据官方权威网址:http://mirrors.ubuntu.com/ 可知,中国的Ubuntu镜像站(http://mirrors.ubuntu.com/CN.txt)有以下几个:
https://mirror.nju.edu.cn/ubuntu/
https://mirror.nyist.edu.cn/ubuntu/
https://mirrors.bfsu.edu.cn/ubuntu/
https://mirrors.xjtu.edu.cn/ubuntu/
https://mirrors.zju.edu.cn/ubuntu/
https://mirror.bjtu.edu.cn/ubuntu/
http://mirrors.njupt.edu.cn/ubuntu/
http://ftp.sjtu.edu.cn/ubuntu/
http://mirrors.jcut.edu.cn/ubuntu/
http://mirrors.cn99.com/ubuntu/
http://mirrors.cqu.edu.cn/ubuntu/
https://mirrors.cloud.tencent.com/ubuntu/
https://mirrors.tuna.tsinghua.edu.cn/ubuntu/
https://mirrors.sjtug.sjtu.edu.cn/ubuntu/
https://mirror.nyist.edu.cn/ubuntu-ports/
https://mirrors.sdu.edu.cn/ubuntu/
https://mirrors.neusoft.edu.cn/ubuntu/
http://mirrors.aliyun.com/ubuntu/
https://mirrors.ustc.edu.cn/ubuntu/
https://mirrors.jlu.edu.cn/ubuntu/
http://mirrors.yun-idc.com/ubuntu/
https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/
https://mirrors.hust.edu.cn/ubuntu/
http://mirrors.huaweicloud.com/repository/ubuntu/
http://mirrors.sohu.com/ubuntu/
https://repo.huaweicloud.com/ubuntu/
https://mirrors.jxust.edu.cn/ubuntu/
http://archive.ubuntu.com/ubuntu/
根据 http://ftp.au.debian.org/debian/pool/main/n/netselect/ 提供的 netselect 包可以得出最适合的软件源。
wget http://ftp.au.debian.org/debian/pool/main/n/netselect/netselect_0.3.ds1-30.2_amd64.deb sudo dpkg -i netselect_0.3.ds1-30.2_amd64.deb netselect -s 20 -t 40 $(wget -qO - mirrors.ubuntu.com/CN.txt)
1 https://mirrors.cloud.tencent.com/ubuntu/ 4 https://mirrors.cloud.tencent.com/ubuntu/ 8 https://mirrors.cloud.tencent.com/ubuntu/ 11 https://mirrors.cloud.tencent.com/ubuntu/ 20 http://mirrors.aliyun.com/ubuntu/ 20 https://repo.huaweicloud.com/ubuntu/ 23 http://mirrors.aliyun.com/ubuntu/ 23 http://mirrors.aliyun.com/ubuntu/ 23 https://repo.huaweicloud.com/ubuntu/ 25 https://repo.huaweicloud.com/ubuntu/ 28 https://mirrors.cloud.tencent.com/ubuntu/ 28 https://mirrors.cloud.tencent.com/ubuntu/ 30 https://repo.huaweicloud.com/ubuntu/ 33 http://mirrors.aliyun.com/ubuntu/ 37 http://mirrors.cn99.com/ubuntu/ 40 http://mirrors.yun-idc.com/ubuntu/ 41 http://mirrors.huaweicloud.com/repository/ubuntu/ 42 http://mirrors.aliyun.com/ubuntu/ 46 http://mirrors.aliyun.com/ubuntu/ 48 https://mirrors.bfsu.edu.cn/ubuntu/
由此可以确定第一个就是最快的那个。
sudo sed -i.bak 's@http://archive.ubuntu.com/ubuntu/@https://mirrors.cloud.tencent.com/ubuntu/@g' /etc/apt/sources.list--