
找了好久发现是之前的sudo apt-get update 出现了问题,这个问题是:

W: GPG error: http://packages.ros.org/ros/ubuntu xenial InRelease: The following signatures were invalid: KEYEXPIRED 1622248854
W: The repository 'http://packages.ros.org/ros/ubuntu xenial InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use
要解决这个问题,需要运行这一行代码:
curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -
这样解决了sudo apt-get update 的更新问题,再运行之前的roslaunch usb_cam usb_cam-test.launch就可以打开摄像头了
这篇博客介绍了如何修复ROS软件包更新时遇到的GPG错误,该错误导致无法验证签名。通过运行指定的curl命令添加新的密钥,可以解决此问题。成功修复后,能够正常运行roslaunch命令来打开USB摄像头。
974

被折叠的 条评论
为什么被折叠?



