rosdep init or rosdep update ERROR

rosdep init or rosdep update ERROR

ERROR: unable to process source https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/...

Solution: 修改hosts文件,添加这个网站的ip地址:

1.#打开hosts文件
2.sudo gedit /etc/hosts
3.#在文件末尾添加
4.151.101.84.133  raw.githubusercontent.com
5.#保存后退出

1.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.cd /etc/ros/rosdep/sources.list.d/
2.sudo rm 20-default.list
3.cd
4.rosdep update
5.sudo rosdep init
6.rosdep update

你可能感兴趣的:(ROS)