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

Revision history [back]

click to hide/show revision 1
initial version

I had the same problem using elemntary OS luna.

You should add an environment variable named "ROS_OS_OVERRIDE" which it's value must be your distribution info. eOs luna is based on ubuntu 12.04 and I'm using Bash Shell. Setting environment variables may be different in other command shells.

$ cat /etc/lsb-release
DISTRIB_ID="elementary OS"
DISTRIB_RELEASE=0.2
DISTRIB_CODENAME=luna
DISTRIB_DESCRIPTION="elementary OS Luna"

You need the first three lines.

$ export ROS_OS_OVERRIDE="DISTRIB_ID:DISTRIB_RELEASE:DISTRIB_CODENAME"

Which in my case it will be:

$ export ROS_OS_OVERRIDE="elementary OS:0.2:luna"

Log out your system then log in again. Now if you check your os.environ in python, the ROS_OS_OVERRIDE will be exist.

>>> import os
>>> "ROS_OS_OVERRIDE" in os.environ
True
>>> os.environ["ROS_OS_OVERRIDE"]
'elementary OS:0.2:luna'

Now you can run rosdep update successfully.