curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -
安装ros时执行这个执行时出现
gpg: no valid OpenPGP data found
这个情况搞了很久,后来发现是因为一个科学上网屏蔽了网站无法连接导致
在/etc/hosts中添加下面的映射关系。ip可以在下面的https://www.ipaddress.com网址中找到ip,然后添加保存,然后执行
curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -
185.199.108.133 raw.githubusercontent.com
185.199.109.133 raw.githubusercontent.com
185.199.110.133 raw.githubusercontent.com
185.199.111.133 raw.githubusercontent.com