本人在Ubuntu20.04中根据官方文档Foxy安装Rox2出现 The following signatures couldn’t be verified because the public key is not available。
参考步骤
第一步,更新源:参考Ubuntu 更换国内源
第二步,解决GPG error: The following signatures couldn’t be verified because the public key is not available
但我在第二步时出现key F42ED6FBAB17C654: “Open Robotics <info@osrfoundation.org>” not changed
再次执行sudo apt-get update还是会出现The following signatures couldn’t be verified because the public key is not available。
最后在这篇论坛中找到办法apt update: signatures were invalid: F42ED6FBAB17C654:
如下:
执行1
`sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg`
执行2
sudo apt-get update
这也是官方文档给出的指令
补充一个我遇到的错误
在执行1中出现错误:
curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
办法:点击搜索raw.githubusercontent.com的ip地址,并用得到ip地址替换指令里的域名
如
在得到的ip地址中,这里使用185.199.108.133代替域名,指令变为
`sudo curl -sSL 185.199.108.133/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg`
无错误提示后,再执行
`sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg`
若无提示错误,便可以跟着官方文档进行下一步操作
希望对你们有帮助
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)