ubuntu: NO_PUBKEY 8D5A09DC9B929006

时间:2021-03-16 04:40:55

最近使用ubuntu16.04时,运行 sudo apt-get update 时出现如下错误:

  W: GPG error: http://archive.ubuntukylin.com:10006/ubuntukylin xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8D5A09DC9B929006

  网上搜索,解决方案如下:sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys <PUBKEY>,其中 <PUBKEY> 替换为 8D5A09DC9B929006即可(尖括号不要保留哈),然后再 sudo apt-get update