Ubuntu18.04/Ubuntu20.04 安装ROS的rosdep update错误问题
下载rosdep.zip
把压缩文件解压到/opt文件夹下
修改命令sudo gedit /usr/lib/python3/dist-packages/rosdistro/__init__.py
把68行http://raw.githubusercontent.com/ros 修改为file:///opt/rosdep
修改命令sudo gedit /usr/lib/python3/dist-packages/rosdep2/rep3.py
将http://raw.githubusercontent.com/ros 修改为file:///opt/rosdep
修改命令sudo gedit /usr/lib/python3/dist-packages/rosdep2/sources_list.py
将https://raw.githubusercontent.com/ros修改为file:///opt/rosdep
修改完成
最后执行
sudo rosdep init
rosdep update
注:如果是ubuntu18.04上面的修改文件命令中的python版本应为python2
1