ros卸载和安装,问题总结

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

保存,退出
####======================

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值