I had previously installed ROS Jade distribution, I have uninstalled it and trying to install Indigo, while running sudo rosdep init
I get following error :
ERROR: default sources list file already exists:
/etc/ros/rosdep/sources.list.d/20-default.list
Please delete if you wish to re-initialize
As suggested in one of the answers I tried using sudo pip uninstall rosdep
to uninstall previous version which gives sudo: pip: command not found
Is there any way to manually remove rosdep?
running which rosdep
gives me this /usr/bin/rosdep
I found this question on the same error
Blockquote
Originally posted by siddhesh on ROS Answers with karma: 39 on 2016-05-23
Post score: 3
Original comments
Comment by spmaniato on 2016-05-23:
Did you try doing what it says? Deleting the file /etc/ros/rosdep/sources.list.d/20-default.list
and then running sudo rosdep init
again?
Comment by abhay2302 on 2016-10-21:
it works for me. thanks
Comment by rishityagi on 2018-05-13:
hello there i am new to ROS and i facing the same problem
etc/ros/rosdep/sources.list.d/20-default.list
i cannot the file location to delete it.
Can you please help??
Comment by Thanhdeptrai on 2020-11-22:
sudo rm /etc/ros/rosdep/sources.list.d/20-default.list