apt-get update: An error occurred during the signature verification
Hit:1 http:/ bionic InRelease
Hit:2 http:/ bionic-updates InRelease
Hit:3 http:/ bionic-backports
InRelease
Hit:4 http:/ bionic-security InRelease
Ign:5 http:/ stable InRelease
Hit:7 http:/ stable Release
Get:6 http:/ bionic InRelease [3,209 B]
Err:6 http:/ bionic InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F42ED6FBAB17C654
Get:9 http:/ bionic InRelease [4,669 B]
Err:9 http:/ bionic InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F42ED6FBAB17C654
Fetched 7,878 B in 1s (6,188 B/s)
Reading package lists... Done
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http:/ bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F42ED6FBAB17C654
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http:/ bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F42ED6FBAB17C654
W: Failed to fetch http:/ The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F42ED6FBAB17C654
W: Failed to fetch http:/ The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F42ED6FBAB17C654
W: Some index files failed to download. They have been ignored, or old ones used instead.how do i go about solving this?? pls note i am new to linux in general.
thank you for your time
1 Answer
You are missing the GPG signing key for the ros2 repositories.
You can add it with the following command:
curl | sudo apt-key add -After that run the following again:
apt-get updateAnd you should be ready to go.
1