写在前面
因为该源是不用GPG
验证的,可能不安全,但因为docker容器没有验证GPG的工具所以只能先用这个源然后安装GPG
验证相关软件包再更换回正式源。
步骤
mv /etc/apt/sources.list /etc/apt/sources.list.bak
cat <<EOF >/etc/apt/sources.list
deb http://mirrors.ustc.edu.cn/debian stable main contrib non-free
deb http://mirrors.ustc.edu.cn/debian stable-updates main contrib non-free
EOF
apt update