sudo rosdep init
ERROR: default sources list file already exists:
/etc/ros/rosdep/sources.list.d/20-default.list
Please delete if you wish to re-initialize
解决:
1.sudo rm /etc/ros/rosdep/sources.list.d/20-default.list
2.sudo rosdep init
如果报错:ERROR: cannot download default sources list from:
https://ghproxy.com/https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/sources.list.d/20-default.list
解决:
1.sudo gedit /etc/hosts
2.添加
185.199.109.133 raw.githubusercontent.com
3.curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -