![](https://img-blog.csdnimg.cn/img_convert/c7980b9b511b34fbb7eb6c7a9c743063.png)
打开终端
cd /usr/lib/python3/dist-packages/
find . -type f | xargs grep "raw.githubusercontent"
![](https://img-blog.csdnimg.cn/img_convert/81f4ffc2376c0add847e225ee394dbc0.png)
修改文件
第一个文件
sudo gedit ./rosdistro/__init__.py
找到文件对应位置内容替换为
gitee.com/zhao-xuzuo/rosdistro/raw/master
![](https://img-blog.csdnimg.cn/img_convert/2ee1d945ee9d22c48f539dbfe3d01ad7.png)
第二个文件
sudo gedit ./rosdep2/gbpdistro_support.py
![](https://img-blog.csdnimg.cn/img_convert/a07a19079fb32e3010e69385c52408dd.png)
第三个文件
sudo gedit ./rosdep2/sources_list.py
![](https://img-blog.csdnimg.cn/img_convert/1ca436fd213ef5cc3d58a5676a97c085.png)
第四个文件
sudo gedit ./rosdep2/rep3.py
![](https://img-blog.csdnimg.cn/img_convert/b2e3fa04251e7d16fbfad2fca8833659.png)
![](https://img-blog.csdnimg.cn/img_convert/d68d1217a2ecb7c6e0485eafd318f138.png)
新开终端
sudo rosdep init
![](https://img-blog.csdnimg.cn/img_convert/a86e639391ec3495205e36fe699cfdbd.png)
rosdep update
测试ros
首先启动三个命令行(ctrl + alt + T)
命令行1键入:roscore
命令行2键入:rosrun turtlesim turtlesim_node(此时会弹出图形化界面)
命令行3键入:rosrun turtlesim turtle_teleop_key(在3中可以通过上下左右控制2中乌龟的运动)
![](https://img-blog.csdnimg.cn/img_convert/14707324552b0ed6d85cc7b3f548fee3.png)
gazebo
![](https://img-blog.csdnimg.cn/img_convert/853582e68ce895cfc567f0577c092fc9.png)
roscore
新开窗口 rviz
![](https://img-blog.csdnimg.cn/img_convert/127ba4c621cc9db152f9d815ae349e8b.png)