apt-get update:签名验证期间发生错误

cob*_*alt 4 linux terminal

Hit:1 http:/ubuntu.melbourneitmirror.net/archive bionic InRelease

Hit:2 http:/ubuntu.melbourneitmirror.net/archive bionic-updates InRelease

Hit:3 http:/ubuntu.melbourneitmirror.net/archive bionic-backports 
InRelease   

Hit:4 http:/ubuntu.melbourneitmirror.net/archive bionic-security InRelease

Ign:5 http:/dl.google.com/linux/chrome/deb stable InRelease   

Hit:7 http:/dl.google.com/linux/chrome/deb stable Release 

Get:6 http:/repo.ros2.org/ubuntu/main bionic InRelease [3,209 B]  

Err:6 http:/repo.ros2.org/ubuntu/main bionic InRelease    
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F42ED6FBAB17C654

Get:9 http:/packages.ros.org/ros/ubuntu bionic InRelease [4,669 B]

Err:9 http:/packages.ros.org/ros/ubuntu 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:/repo.ros2.org/ubuntu/main 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:/packages.ros.org/ros/ubuntu bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F42ED6FBAB17C654

W: Failed to fetch http:/packages.ros.org/ros/ubuntu/dists/bionic/InRelease  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F42ED6FBAB17C654

W: Failed to fetch http:/repo.ros2.org/ubuntu/main/dists/bionic/InRelease  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.
Run Code Online (Sandbox Code Playgroud)

我该如何解决这个问题?请注意,我总体来说是 Linux 新手。

感谢您的时间

Fan*_*que 6

您缺少 ros2 存储库的 GPG 签名密钥。

您可以使用以下命令添加它:

curl http://repo.ros2.org/repos.key | sudo apt-key add -
Run Code Online (Sandbox Code Playgroud)

之后再次运行以下命令:

apt-get update
Run Code Online (Sandbox Code Playgroud)

你应该准备好出发了。