当前位置:正能量 » 代码编程 » Linux » Debian 全球镜像站的源

Debian 全球镜像站的源

Debian 全球镜像站

https://www.debian.org/mirror/list.zh-cn.html

以下代码在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
未经允许不得转载:正能量 » Debian 全球镜像站的源

相关文章

评论 (0)

1 + 8 =