在 sudo apt update

和安装docker时 sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"

遇到

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 focal InRelease: The following signatures were invalid:  Open Robotics <info@osrfoundation.org>
W: Failed to fetch http://packages.ros.org/ros/ubuntu/dists/focal/InRelease  The following signatures were invalid:  Open Robotics <info@osrfoundation.org>
W: Some index files failed to download. They have been ignored, or old ones used instead

主要想解决这个问题。但这个影不影响使用还不清楚。目前就当不影响使用吧,毕竟也没有找到解决方法

找到以下参考解决办法,均为未成功

https://varhowto.com/fix-ros-package-repo-signature-verification-error/

尝试curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -

并不ok 输出gpg: no valid OpenPGP data found.

以下未解决,可能方法不靠谱

https://www.cnblogs.com/sea-stream/p/9772143.html

Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐