返回工具库
🚀
Debian APT 换源
安装加速将 Debian 系统的软件包源切换为国内镜像,大幅加速 apt update 和软件安装速度。支持 Bookworm / Bullseye / Buster 多版本。
官方文档
#debian#apt#mirror#linux
推荐Debian 12 (Bookworm)支持国内镜像
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak sudo tee /etc/apt/sources.list << 'EOF' deb http://deb.debian.org/debian bookworm main non-free-firmware contrib deb http://deb.debian.org/debian bookworm-updates main non-free-firmware contrib deb http://security.debian.org/debian-security bookworm-security main non-free-firmware contrib EOF sudo apt update
Debian 11 (Bullseye)支持国内镜像
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak sudo tee /etc/apt/sources.list << 'EOF' deb http://deb.debian.org/debian bullseye main contrib non-free deb http://deb.debian.org/debian bullseye-updates main contrib non-free deb http://security.debian.org/debian-security bullseye-security main contrib non-free EOF sudo apt update
Debian 10 (Buster)支持国内镜像
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak sudo tee /etc/apt/sources.list << 'EOF' deb http://deb.debian.org/debian buster main contrib non-free deb http://deb.debian.org/debian buster-updates main contrib non-free deb http://security.debian.org/debian-security buster/updates main contrib non-free EOF sudo apt update