当 apt-get update 更新后,出现下面错误时的解决方法:
正在读取软件包列表… 完成
W: GPG 错误:http://ppa.launchpad.net trusty InRelease: 由于没有公钥,无法验证下列签名: NO_PUBKEY 2EA8F35793D8809A
解决办法:
sudo apt-key adv –keyserver keyserver.ubuntu.com –recv-keys 2EA8F35793D8809A
结果:
然后会自动执行
Executing: gpg –ignore-time-conflict –no-options –no-default-keyring –secret-keyring /tmp/tmp.uxUmi4wF1r –trustdb-name /etc/apt/trustdb.gpg –keyring /etc/apt/trusted.gpg –primary-keyring /etc/apt/trusted.gpg –keyserver keyserver.ubuntu.com –recv-keys 2EA8F35793D8809A
gpg: 下载密钥‘93D8809A’,从 hkp 服务器 keyserver.ubuntu.com
gpg: 密钥 93D8809A:公钥“Launchpad PPA for Martin Wimpress”已导入
gpg: 合计被处理的数量:1
gpg: 已导入:1 (RSA: 1)