编辑
1apt install apt-transport-https ca-certificates
2vim /etc/apt/sources.list
Debian 11
1# Official & Contrib & Non-free
2deb https://deb.debian.org/debian bullseye main contrib non-free
3deb-src https://deb.debian.org/debian bullseye main contrib non-free
4
5deb https://deb.debian.org/debian-security bullseye-security main contrib non-free
6deb-src https://deb.debian.org/debian-security bullseye-security main contrib non-free
7
8deb https://deb.debian.org/debian bullseye-updates main contrib non-free
9deb-src https://deb.debian.org/debian bullseye-updates main contrib non-free
10
11# Backports
12deb https://deb.debian.org/debian bullseye-backports main contrib non-free
13deb-src https://deb.debian.org/debian bullseye-backports main contrib non-free
Debian 12
1# apt install apt-transport-https ca-certificates
2
3deb https://deb.debian.org/debian/ bookworm contrib main non-free non-free-firmware
4deb-src https://deb.debian.org/debian/ bookworm contrib main non-free non-free-firmware
5
6deb https://deb.debian.org/debian/ bookworm-updates contrib main non-free non-free-firmware
7deb-src https://deb.debian.org/debian/ bookworm-updates contrib main non-free non-free-firmware
8
9deb https://deb.debian.org/debian/ bookworm-backports contrib main non-free non-free-firmware
10deb-src https://deb.debian.org/debian/ bookworm-backports contrib main non-free non-free-firmware
11
12deb https://deb.debian.org/debian-security/ bookworm-security contrib main non-free non-free-firmware
13deb-src https://deb.debian.org/debian-security/ bookworm-security contrib main non-free non-free-firmware
除另有声明外,本博客文章均采用 知识共享 (Creative Commons) 署名 4.0 国际许可协议 进行许可。转载请注明原作者与文章出处。