阅读量:0
前言
实现一键替换在线源
一键更新源
- Debian 全球镜像站
- 以下支持现有debian 11 12
echo "Delete the default source" rm -rf /etc/apt/sources.list echo "Build a new source" cat <<'EOF'>>/etc/apt/sources.list.d/debian.sources Types: deb URIs: http://mirrors.aliyun.com/debian Suites: bullseye bullseye-updates bullseye-backports Components: main contrib non-free Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg Types: deb URIs: http://security.debian.org/ Suites: bullseye-security Components: main contrib non-free Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg EOF echo "update source" apt update