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
Para mí el problema fue que gazebo-stable.list tiene información incorrecta, pues hace referencia a una clave incorrecta. Después de 4 horas de prueba y error, encontré finalmente 2 claves en /keyrings y la clave correcta es: osrf.gpg que tiene 1,2 kb
La otra que encontré gazebo-stable.gpg tiene 1,7 kb es incorrecta.
Hacen el cambio en el gazebo-stable.list y listo.