W: GPG error when sudo apt-get update: http://packages.osrfoundation.org/gazebo/ubuntu-stable xenial InReleas

W: GPG error when sudo apt-get update: http://packages.osrfoundation.org/gazebo/ubuntu-stable xenial InRelease: The following signature could not be verified because there is no public key: NO_PUBKEY 67170598AF249743E: Repository "http://packages. osrfoundation.org/gazebo/ubuntu-stable xenial InRelease" has no digital signature. N: This source cannot be safely updated with, so this source is disabled by default.


)

question

When running sudo apt-get update

W: GPG 错误:http://packages.osrfoundation.org/gazebo/ubuntu-stable xenial InRelease: 由于没有公钥,无法验证下列签名: NO_PUBKEY 67170598AF249743
E: 仓库 “http://packages.osrfoundation.org/gazebo/ubuntu-stable xenial InRelease” 没有数字签名。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。

Description above
1

solve

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 67170598AF249743

Notice
The key needs to be replaced with your own, mine is 67170598AF249743

Guess you like

Origin blog.csdn.net/qq_50598558/article/details/117715096