ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
martin94@ubuntu:~$ sudo rosdep init ERROR: default sources list file already exists: /etc/ros/rosdep/sources.list.d/20-default.list Please delete if you wish to re-initialize
This you can ignore (unless you want to re-initialize): you only need to run sudo rosdep init
once, even if you (re)install a different version of ROS.
martin94@ubuntu:~$ echo "source /opt/ros/indigo/setup.bash" >> ~/.bashrc martin94@ubuntu:~$ echo "source /opt/ros/indigo/setup.bash" >> ~/.bashrc
If this is an actualy copy/paste, then again: you only need to do this once. The >>
will cause bash
to append the line you give to echo
to the .bashrc
file, so you'll now have multiple. That is not really an issue, just unnecessary.
martin94@ubuntu:~$ source ~/.bashrc bash: /opt/ros/jade/setup.bash: No such file or directory
Are you sure you have installed ROS Jade on this machine? This basically tells you that bash
was unable to find setup.bash
in the /opt/ros/jade
directory. A successful installation of ROS Jade should have placed that file there.
Can you add the output of ls -al /opt/ros
to your original question? Please use the edit button / link for that.
Also: please add on which OS you are doing this (ubuntu, yes, but which version?).
2 | No.2 Revision |
martin94@ubuntu:~$ sudo rosdep init ERROR: default sources list file already exists: /etc/ros/rosdep/sources.list.d/20-default.list Please delete if you wish to re-initialize
This you can ignore (unless you want to re-initialize): you only need to run sudo rosdep init
once, even if you (re)install a different version of ROS.
martin94@ubuntu:~$ echo "source /opt/ros/indigo/setup.bash" >> ~/.bashrc martin94@ubuntu:~$ echo "source /opt/ros/indigo/setup.bash" >> ~/.bashrc
If this is an actualy copy/paste, then again: you only need to do this once. The >>
will cause bash
to append the line you give to echo
to the .bashrc
file, so you'll now have multiple. That is not really an issue, just unnecessary.
martin94@ubuntu:~$ source ~/.bashrc bash: /opt/ros/jade/setup.bash: No such file or directory
Are you sure you have installed ROS Jade on this machine? This basically tells you that bash
was unable to find setup.bash
in the /opt/ros/jade
directory. A successful installation of ROS Jade should have placed that file there.
Can you add the output of ls -al /opt/ros
to your original question? Please use the edit button / link for that.
Also: please add on which OS you are doing this (ubuntu, yes, but which version?).
Edit: seems you edited your question title (old title: "Hey guys, I installed ROS jade instead of ROS indigo and I keep getting the following error while installing the rosdep. Someone knows what to do?"). My previous answer assumed you had Jade installed, not Indigo.
output of ls -al /opt/ros:
martin94@ubuntu:~$ ls -al /opt/ros [..] drwxr-xr-x 7 root root 4096 Aug 26 20:06 indigo
From this (and from your updated question title), it seems you only have Indigo installed, but your .bashrc
is still trying to read the setup.bash
file under /opt/ros/jade
. You don't have that, hence the error (the No such file or directory error, not the rosdep
error, that is unrelated).
Open .bashrc
, and look for a line source /opt/ros/jade/..
at the end of it. Remove any lines that have source
and jade
in them.