In debian doc, add replace one-liner for debian 12
iamwrm opened this issue · 0 comments
iamwrm commented
Hi,
In debian 12, sudo sed -i "s|http://deb.debian.org/debian|http://mirror.sjtu.edu.cn/debian|g" /etc/apt/sources.list
does't work,
According to https://mirrors.ustc.edu.cn/help/debian.html,
Debian 12 (bookworm) 的容器镜像开始使用 DEB822 格式,而非上文使用的传统的 One-Line-Style 格式。 对应需要修改的文件为 /etc/apt/sources.list.d/debian.sources。同样可以使用如下命令:
sudo sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list.d/debian.sources
以下是在 Debian 12 容器镜像中同时修改了 Debian 与 Debian Security 源的情况下的参考配置内容
We should also include guidance for debian 12