设置镜像源
我们通过vi打开/etc/apt/sources.list
将下面其中一个镜像站内容拷贝粘贴(shift+insert)进里面,之后保存输入sudo apt update
即可。
国内常见镜像站点
Debian全球镜像站列表:https://www.debian.org/mirror/list 。
下面列出国内常用的镜像站点及 /etc/apt/sources.list
中的具体对应内容:
阿里云镜像站
deb https://mirrors.aliyun.com/debian/ bookworm main non-free non-free-firmware contrib
deb-src https://mirrors.aliyun.com/debian/ bookworm main non-free non-free-firmware contrib
deb https://mirrors.aliyun.com/debian-security/ bookworm-security main
deb-src https://mirrors.aliyun.com/debian-security/ bookworm-security main
deb https://mirrors.aliyun.com/debian/ bookworm-updates main non-free non-free-firmware contrib
deb-src https://mirrors.aliyun.com/debian/ bookworm-updates main non-free non-free-firmware contrib
deb https://mirrors.aliyun.com/debian/ bookworm-backports main non-free non-free-firmware