ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

No ROS 'sourceing' anymore after installing rosdep2

asked 2020-08-19 01:23:41 -0500

marc wellman gravatar image

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?

edit retag flag offensive close merge delete

Comments

1

Is that a typo or did you install rosdep with the package python-rosdep2 ? From the API :

Experimental: the rosdep2 Python library is still unstable.

That might explain why there is an issue. If you just want rosdep I would uninstall python-rosdep2 and then you can simply follow the wiki :

sudo apt-get install python-rosdep
Delb gravatar image Delb  ( 2020-08-19 02:08:03 -0500 )edit

Thanks for the hint! I just uninstalled rosdep2 and installed rosdep, all without issues. Unofortunately, the situation didn't change.

marc wellman gravatar image marc wellman  ( 2020-08-19 02:16:26 -0500 )edit
1

Alright, so when you do source /opt/ros/meldoic/setub.bash is there an issue ? Can you show what env | grep ROS returns after sourcing ros ?

Delb gravatar image Delb  ( 2020-08-19 02:21:11 -0500 )edit

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:

ROS_ETC_DIR=/opt/ros/melodic/etc/ros
ROS_ROOT=/opt/ros/melodic/share/ros
ROS_VERSION=1
ROS_PYTHON_VERSION=2
ROS_PACKAGE_PATH=/opt/ros/melodic/share
ROS_DISTRO=melodic
marc wellman gravatar image marc wellman  ( 2020-08-19 02:25:46 -0500 )edit

Everything seems fine though, do you still have the same error when trying roscore ? If you try locate roslaunch do you find it in /opt/ros/melodic ? I would try a sudo apt update and updgrade to check for missing dependencies.

Delb gravatar image Delb  ( 2020-08-19 02:43:26 -0500 )edit

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 :-(

marc wellman gravatar image marc wellman  ( 2020-08-19 02:51:48 -0500 )edit
1

Does apt complain about something ? The fact that there isn't the binary roslaunch is problematic so indeed reinstalling ros should work but your situation is odd. What happened after sudo apt install python-roslaunch ? Did it resolve other dependencies ?

Delb gravatar image Delb  ( 2020-08-19 03:06:16 -0500 )edit

Yes my situation is very odd!

apt did not complain about anything. Trying to use sudo apt install python-roslaunch lets me run into a chain of unresolvable dependency problems such as:

The following packages have unmet dependencies:
 python-roslaunch : Depends: python-roslib but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

After executing sudo apt install ros-melodic-roslib I am getting

The following packages have unmet dependencies:
 python-roslib : Depends: catkin but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

and so on and so forth,

marc wellman gravatar image marc wellman  ( 2020-08-19 03:11:16 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-08-05 16:59:41 -0500

Chu-Chu gravatar image

I encountered this problem a couple of minutes ago. My solution was to reinstall the ros distro with sudo apt-get install ros-melodic-desktop-full . I had to reinstall some packages I had prior to the running the command but roscore started working again.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2020-08-19 01:23:41 -0500

Seen: 462 times

Last updated: Aug 19 '20