Debian10: apt-get update GPG error

执行apt-get update时,出现如下提示信息,经过了解是公钥出了问题,需要更新公钥。

root@server:~# apt-get update
... ...
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 0E98404D386FA1D9 NO_PUBKEY 6ED0E7B82643E131
... ...

解决办法:通过执行apt-key命令创建新的公钥即可。

root@server:~# apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0E98404D386FA1D9
Executing: /tmp/apt-key-gpghome.6DdeJexGFr/gpg.1.sh --recv-keys --keyserver keyserver.ubuntu.com 0E98404D386FA1D9
gpg: key 73A4F27B8DD47936: public key "Debian Archive Automatic Signing Key (11/bullseye) " imported
gpg: Total number processed: 1
gpg:               imported: 1

你可能感兴趣的:(linux,运维,服务器)