如何处理 phalconphp GPG 问题

如何处理 phalconphp GPG 问题

我正在尝试更新我的 nodejs 安装,但 phalconphp 妨碍了我。当我运行 时apt-get update,我收到此投诉

Err:13 https://packagecloud.io/phalcon/stable/ubuntu xenial InRelease                                        
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4166E80CDCF8B31B

遵循几个帖子的建议(例如这个),我尝试获取 GPG 密钥:

sudo gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv 4166E80CDCF8B31B

结果是

gpg: requesting key DCF8B31B from hkp server keyserver.ubuntu.com
gpgkeys: key 4166E80CDCF8B31B not found on keyserver
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
gpg: keyserver communications error: key not found
gpg: keyserver communications error: bad public key
gpg: keyserver receive failed: bad public key

那么我如何确定哪个服务器应该拥有 GPG 密钥?

答案1

我通过重新运行phalcon 安装脚本

curl -s "https://packagecloud.io/install/repositories/phalcon/stable/script.deb.sh" | sudo bash

该脚本具有正确的密钥服务器的 URL 并apt-get add在其上运行(相关部分在这里,但请随意阅读整个脚本)

gpg_key_url="https://packagecloud.io/phalcon/stable/gpgkey"
# ...
curl -L "${gpg_key_url}" 2> /dev/null | apt-key add - &>/dev/null

相关内容