When I type this command “sudo apt-get update”, it told me that the following signature could not be verified because there was no public key: NO_PUBKEY 67170598AF249743
Today I tried to install gazebo latest lts on ubuntu 22.04 LTS (jammy)
First using sudo snap install gazebo --beta did not work for me
Then I tried sudo snap install gazebo --edge did not work for me
Then I decided to try install binaries following the instructions in the official gazebo documentation.
Then I stumbled on the same error then some of you. Here is 11 steps of how I fixed it.
Configure the latest keyserver in Ubuntu 22.04 LTS Keychain app in Ubuntu Desktop with GNOME
For me I removed all old keyservers. I added only
hkps://keyserver.ubuntu.com:443
Using Keychain app search for the fingerprint shown by NO_PUB_KEY message
Import the key to your local keystore
4.Logout/Login again
Create a symlink ln -s /usr/share/keyrings/pkgs-osrf-archive-keyring.gpg /etc/apt/trusted.gpg.d/pkgs-osrf-archive-keyring.gpg
KEY POINT FOR ME: Change the ownership of both /etc/apt/trusted.gpg.d and /etc/apt/trusted.gpg.d/pkgs-osrf-archive-keyring.gpg
With the command:
chown _apt:nogroup /etc/apt/trusted.gpg.d