No ROS 'sourceing' anymore after installing rosdep2
My ROS-system was working pretty well.
Then, I installed rosdep by using sudo apt install python-rosdep2
, which ended fine without showing any issues. Then I issued
sudo rosdep init
sudo rosdep update
which also ended without showing issues.
But now, my ROS-installation seems to be broken because I can't source my ROS any more!
For example, typing ROS-commands, such as
roscore
or rqt
results in
Command 'roscore' not found, but can be installed with:
sudo apt install python-roslaunch
Sourcing, as usual with source /opt/ros/meldoic/setub.bash
makes no difference.
What has happened? How to fix this?
Is that a typo or did you install
rosdep
with the packagepython-rosdep2
? From the API :That might explain why there is an issue. If you just want
rosdep
I would uninstallpython-rosdep2
and then you can simply follow the wiki :Thanks for the hint! I just uninstalled rosdep2 and installed rosdep, all without issues. Unofortunately, the situation didn't change.
Alright, so when you do
source /opt/ros/meldoic/setub.bash
is there an issue ? Can you show whatenv | grep ROS
returns after sourcing ros ?Doing
source /opt/ros/melodic/setup.bash
behaves as usual, giving no feedback, after hitting Enter, which seems to be normal.Output of
env | grep ROS
is:Everything seems fine though, do you still have the same error when trying
roscore
? If you trylocate roslaunch
do you find it in/opt/ros/melodic
? I would try asudo apt update
andupdgrade
to check for missing dependencies.Did all of that. Situation unchanged.
Though, it's funny:
locate roslaunch
shows me for instance/opt/ros/melodic/bin/roslaunch
but I do not have such a file within/opt/ros/melodic/bin
.I will now try to remove my ROS installation and just reinstall it as a whole. I do not see any other option now :-(
Does
apt
complain about something ? The fact that there isn't the binaryroslaunch
is problematic so indeed reinstalling ros should work but your situation is odd. What happened aftersudo apt install python-roslaunch
? Did it resolve other dependencies ?Yes my situation is very odd!
apt
did not complain about anything. Trying to usesudo apt install python-roslaunch
lets me run into a chain of unresolvable dependency problems such as:After executing
sudo apt install ros-melodic-roslib
I am gettingand so on and so forth,