「Debian/Ubuntu」- 国内源、国内仓库、常用仓库(源)

Debian

netselect-apt

该命令检测每个 Debian 镜像网站,并找到访问最快的(用的时间会很长),会在当前目录产生 sources.list 的文件:

# netselect-apt
...
The fastest 10 servers seem to be:

        http://mirrors.ustc.edu.cn/debian/
        http://mirrors.bfsu.edu.cn/debian/
        http://mirror.nju.edu.cn/debian/
        http://dennou-k.gfd-dennou.org/debian/
        http://mirrors.tuna.tsinghua.edu.cn/debian/
        http://ftp.yz.yamagata-u.ac.jp/debian/
        http://ftp.harukasan.org/debian/
        http://debian.csie.ntu.edu.tw/debian/
        http://ftp.yz.yamagata-u.ac.jp/debian/
        http://ftp.yz.yamagata-u.ac.jp/debian/

Of the hosts tested we choose the fastest valid for http:
        http://mirrors.ustc.edu.cn/debian/

Writing sources.list.
Done.

# cat sources.list 
...
deb http://mirrors.ustc.edu.cn/debian/ stable main contrib
...

./debian-stable.list

./debian-11-bullseye.list
./debian-10-buster.list
./debian-9-stretch.list
./debian-8-jessie.list
./debian-7-wheezy.list

Ubuntu

./ubuntu-22.04.list
./ubuntu-20.04.list
./ubuntu-18.04.list
./ubuntu-16.04 (arm64)
./ubuntu-16.04
./ubuntu-10.10

KaLi Rolling

# 官方源
deb http://http.kali.org/kali kali-rolling main non-free contrib
deb-src http://http.kali.org/kali kali-rolling main non-free contrib

# http://mirrors.neusoft.edu.cn/kali/
# http://http.kali.org/

参考文献

Ubuntu18.04更换国内源
debian设置软件源为阿里云
Debian10更换apt源
Debian 9 Stretch国内常用镜像源
ubuntu20.04 LTS 更换国内163源、阿里源、清华源、中科大源
Debian 11 (bullseye) 国内软件源 – Guanglin – 博客园
Debian添加源(source.list)_Tirecoed的博客-CSDN博客_debian添加源