简介
使用vpn后,debian下载软件可能会报签名错误:
GPG error: https://download.docker.com/linux/debian bookworm InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 7EA0A9C3F273FCD8
解决方案
# 临时禁用校验
sudo apt-get update --allow-unauthenticated
# 永久禁用校验
cat <<EOF > /etc/apt/apt.conf.d/99myconfig
Acquire::AllowInsecureRepositories "true";
Acquire::AllowDowngradeToInsecureRepositories "true";
EOF