Debian 全球镜像站
以下代码在shell里面执行后,然后执行apt -y update
中国大陆
cat <<EOF > /etc/apt/sources.list
deb http://ftp.cn.debian.org/debian/ bullseye main non-free contrib
deb-src http://ftp.cn.debian.org/debian/ bullseye main non-free contrib
deb http://ftp.cn.debian.org/debian-security/ bullseye-security main
deb-src http://ftp.cn.debian.org/debian-security/ bullseye-security main
deb http://ftp.cn.debian.org/debian/ bullseye-updates main non-free contrib
deb-src http://ftp.cn.debian.org/debian/ bullseye-updates main non-free contrib
deb http://ftp.cn.debian.org/debian/ bullseye-backports main non-free contrib
deb-src http://ftp.cn.debian.org/debian/ bullseye-backports main non-free contrib
EOF
阿里云
cat <<EOF > /etc/apt/sources.list
deb http://mirrors.aliyun.com/debian/ bullseye main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ bullseye main non-free contrib
deb http://mirrors.aliyun.com/debian-security/ bullseye-security main
deb-src http://mirrors.aliyun.com/debian-security/ bullseye-security main
deb http://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib
deb http://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib
EOF
香港
cat <<EOF > /etc/apt/sources.list
deb http://ftp.hk.debian.org/debian/ bullseye main non-free contrib
deb-src http://ftp.hk.debian.org/debian/ bullseye main non-free contrib
deb http://ftp.hk.debian.org/debian-security/ bullseye-security main
deb-src http://ftp.hk.debian.org/debian-security/ bullseye-security main
deb http://ftp.hk.debian.org/debian/ bullseye-updates main non-free contrib
deb-src http://ftp.hk.debian.org/debian/ bullseye-updates main non-free contrib
deb http://ftp.hk.debian.org/debian/ bullseye-backports main non-free contrib
deb-src http://ftp.hk.debian.org/debian/ bullseye-backports main non-free contrib
EOF
美国
cat <<EOF > /etc/apt/sources.list
deb http://ftp.debian.org/debian/ bullseye main non-free contrib
deb-src http://ftp.debian.org/debian/ bullseye main non-free contrib
deb http://ftp.debian.org/debian-security/ bullseye-security main
deb-src http://ftp.debian.org/debian-security/ bullseye-security main
deb http://ftp.debian.org/debian/ bullseye-updates main non-free contrib
deb-src http://ftp.debian.org/debian/ bullseye-updates main non-free contrib
deb http://ftp.debian.org/debian/ bullseye-backports main non-free contrib
deb-src http://ftp.debian.org/debian/ bullseye-backports main non-free contrib
EOF
AWS
cat <<EOF > /etc/apt/sources.list
deb http://cdn-aws.deb.debian.org/debian bullseye main
deb-src http://cdn-aws.deb.debian.org/debian bullseye main
deb http://security.debian.org/debian-security bullseye-security main
deb-src http://security.debian.org/debian-security bullseye-security main
deb http://cdn-aws.deb.debian.org/debian bullseye-updates main
deb-src http://cdn-aws.deb.debian.org/debian bullseye-updates main
deb http://cdn-aws.deb.debian.org/debian bullseye-backports main
deb-src http://cdn-aws.deb.debian.org/debian bullseye-backports main
EOF