ros卸载与安装问题总结
完全卸载:
//依次输入:
$sudo apt-get purge ros-*
$sudo rm -rf /etc/ros
$gedit ~/.bashrc
参考https://blog.csdn.net/qq_41058594/article/details/81079259
===============================================
在一开始选择镜像源的时候,最好选择清华源,不要用默认的Ubuntu源:
================================================
问题1.sudo:rosdep:command not found 解决方法
sudo apt install python-rosdep
问题2.
步骤1default sources list file already exists 解决方法 sudo rm /etc/ros/rosdep/sources.list.d/20-default.list(把报错的文件删掉)
步骤2 重新sudo rosdep init (一次就好)
问题3 cannot download default sources list from 解决办法 sudo c_rehash /etc/ssl/certs sudo -E rosdep init
rosdep update出问题 一般 sudo update 再 rosdep update 就行
https://blog.csdn.net/qq_41152160/article/details/103963798
=不建议================
对于问题1,sudo rosdep init 如果出现
rosdep command not found。
如果你使用了sudo apt install rospack-tools,还会出现其他问题,如下所示,不推荐用。
cxl@cxl-pc:~$ sudo rosdep init
sudo: rosdep: command not found
cxl@cxl-pc:~$ sudo apt install rospack-tools
对于现在,你再执行原来的rosdep init,出现下列报错
cxl@cxl-pc:~$ sudo rosdep init
ERROR: cannot download default sources list from:
https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/sources.list.d/20-default.list
Website may be down.
再执行
cd /etc
sudo gedit hosts
然后,添加下列语句在末尾。
151.101.84.133 raw.githubusercontent.com
保存,退出
####======================