使用 docker 构建一个纯净的 debian bookworm 测试环境
首先拉取镜像 然后使用下面的命令 如果你在中国大陆,请替换软件源 如果是外面的机器,只要执行下面的命令就行 好了,这个时候你就可以愉快的玩耍了docker pull debian:bookwormdocker run --rm --name bookworm-go -it debian:bookworm bash创建命名容器 + 使用 bash + 退出自动删除
sed -i 's|URIs: http://deb.debian.org|URIs: https://mirrors.tuna.tsinghua.edu.cn|g' /etc/apt/sources.list.d/debian.sources && \
apt update不需要加 sudo,因为默认就是 root
apt update