我该如何修复这个错误?我通过 ppa 安装了 pycharm,我已经在多台计算机上使用了多年。
W: GPG error: http://ppa.launchpad.net/mystic-mirage/pycharm/ubuntu xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY DD969F10A7E2BCD2
W: The repository 'http://ppa.launchpad.net/mystic-mirage/pycharm/ubuntu xenial InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: There is no public key available for the following key IDs:
DD969F10A7E2BCD2
答案1
编辑:您需要将其添加到 apt:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys DD969F10A7E2BCD2
第一个错误的答案:
他们更改了用于对软件包进行签名的 GPG 密钥。尝试在终端中运行此命令:
gpg --recv-keys DD969F10A7E2BCD2