Debian 12默认官方源sources.list
备份现有apt源配置
mv /etc/apt/sources.list /etc/apt/sources.list.old
替换为默认官方源
cat > /etc/apt/sources.list << EOF
deb https://deb.debian.org/debian/ bookworm main contrib non-free non-free-firmware
deb-src https://deb.debian.org/debian/ bookworm main contrib non-free non-free-firmware
deb https://deb.debian.org/debian/ bookworm-updates main contrib non-free non-free-firmware
deb-src https://deb.debian.org/debian/ bookworm-updates main contrib non-free non-free-firmware
deb https://deb.debian.org/debian/ bookworm-backports main contrib non-free non-free-firmware
deb-src https://deb.debian.org/debian/ bookworm-backports main contrib non-free non-free-firmware
deb https://security.debian.org/debian-security/ bookworm-security main contrib non-free non-free-firmware
deb-src https://security.debian.org/debian-security/ bookworm-security main contrib non-free non-free-firmware
EOF
更新apt索引
apt update