134 字
1 分钟
Debian 12 APT 仓库源配置
1、修改国内源
$ mv /etc/apt/sources.list /etc/apt/sources.list.bak# 阿里源$ cat >> /etc/apt/sources.list << EOFdeb https://mirrors.aliyun.com/debian/ bookworm main non-free non-free-firmware contribdeb-src https://mirrors.aliyun.com/debian/ bookworm main non-free non-free-firmware contribdeb https://mirrors.aliyun.com/debian-security/ bookworm-security maindeb-src https://mirrors.aliyun.com/debian-security/ bookworm-security maindeb https://mirrors.aliyun.com/debian/ bookworm-updates main non-free non-free-firmware contribdeb-src https://mirrors.aliyun.com/debian/ bookworm-updates main non-free non-free-firmware contribdeb https://mirrors.aliyun.com/debian/ bookworm-backports main non-free non-free-firmware contribdeb-src https://mirrors.aliyun.com/debian/ bookworm-backports main non-free non-free-firmware contribEOF# 腾讯源$ cat >> /etc/apt/sources.list << EOFdeb https://mirrors.cloud.tencent.com/debian/ bookworm main non-free non-free-firmware contribdeb-src https://mirrors.cloud.tencent.com/debian/ bookworm main non-free non-free-firmware contribdeb https://mirrors.cloud.tencent.com/debian-security/ bookworm-security maindeb-src https://mirrors.cloud.tencent.com/debian-security/ bookworm-security maindeb https://mirrors.cloud.tencent.com/debian/ bookworm-updates main non-free non-free-firmware contribdeb-src https://mirrors.cloud.tencent.com/debian/ bookworm-updates main non-free non-free-firmware contribdeb https://mirrors.cloud.tencent.com/debian/ bookworm-backports main non-free non-free-firmware contribdeb-src https://mirrors.cloud.tencent.com/debian/ bookworm-backports main non-free non-free-firmware contribEOF2、更新源
$ apt update Debian 12 APT 仓库源配置
https://blog.xeu.asia/posts/系统运维/debian-12-apt-仓库源配置/