修改您的 Profile
nano /etc/profile
添加 export PATH=$PATH:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
用 CAT 命令更新源
163 源
apt install apt-transport-https ca-certificates
cat <
deb http://mirrors.163.com/debian/ bullseye main non-free contrib
deb-src http://mirrors.163.com/debian/ bullseye main non-free contrib
deb http://mirrors.163.com/debian-security/ bullseye-security main
deb-src http://mirrors.163.com/debian-security/ bullseye-security main
deb http://mirrors.163.com/debian/ bullseye-updates main non-free contrib
deb-src http://mirrors.163.com/debian/ bullseye-updates main non-free contrib
deb http://mirrors.163.com/debian/ bullseye-backports main non-free contrib
deb-src http://mirrors.163.com/debian/ bullseye-backports main non-free contrib
EOF
清華大學源
apt install apt-transport-https ca-certificates
cat <
deb http://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free-firmware
deb-src http://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free-firmware
deb http://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free-firmware
deb-src http://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free-firmware
deb http://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free-firmware
deb-src http://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free-firmware
deb http://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free-firmware
deb-src http://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free-firmware
EOF
騰訊國際
cat <
deb https://mirrors.cloud.tencent.com/debian/ bookworm main non-free non-free-firmware contrib
deb-src https://mirrors.cloud.tencent.com/debian/ bookworm main non-free non-free-firmware contrib
deb https://mirrors.cloud.tencent.com/debian-security/ bookworm-security main
deb-src https://mirrors.cloud.tencent.com/debian-security/ bookworm-security main
deb https://mirrors.cloud.tencent.com/debian/ bookworm-updates main non-free non-free-firmware contrib
deb-src https://mirrors.cloud.tencent.com/debian/ bookworm-updates main non-free non-free-firmware contrib
deb https://mirrors.cloud.tencent.com/debian/ bookworm-backports main non-free non-free-firmware contrib
deb-src https://mirrors.cloud.tencent.com/debian/ bookworm-backports main non-free non-free-firmware contrib
EOF
更新 apt update -y
安裝常用軟件
apt install -y curl
apt-get install -y net-tools
apt-get install -y ufw
apt install netselect-apt
測試幾個常用的鏡像站點 netselect ftp.cn.debian.org mirror.lzu.edu.cn mirror.nju.edu.cn mirror.nyist.edu.cn mirrors.163.com mirrors.bfsu.edu.cn mirrors.jlu.edu.cn mirror.sjtu.edu.cn mirrors.qvq.net.cn mirrors.tuna.tsinghua.edu.cn mirrors.ustc.edu.cn mirrors.zju.edu.cn ftp.jp.debian.org debian-mirror.sakura.ne.jp dennou-k.gfd-dennou.org dennou-q.gfd-dennou.org ftp.jaist.ac.jp ftp.kddilabs.jp ftp.nara.wide.ad.jp ftp.riken.jp ftp.yz.yamagata-u.ac.jp mirrors.xtom.jp repo.jing.rocks