debian GPG error

40 阅读1分钟

Reading package lists... Done W: GPG error: mirrors.tuna.tsinghua.edu.cn/docker-ce/l… bookworm InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7EA0A9C3F273FCD8 E: The repository 'mirrors.tuna.tsinghua.edu.cn/docker-ce/l… bookworm InRelease' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.

下载并编译gpg文件 curl -fsSL download.docker.com/linux/debia… | gpg --dearmor -o //usr/share/keyrings/docker.gpg usr/share/keyrings文件夹有权限,下载到其他文件夹移动过来

curl -fsSL download.docker.com/linux/debia… | gpg --dearmor -o //srv/dev-disk-by-label-m/v/000/docker.gpg

sudo omv-env set OMV_DOCKER_APT_REPOSITORY_URL "https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/debian"

更新