134 字
1 分钟
Debian12 国内仓库源配置
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 Debian12 国内仓库源配置
http://blog.xeu.asia/posts/linux环境基础配置/debian12-国内仓库源配置/