Ask Your Question

Revision history [back]

So I managed to reproduce this problem by modifying my /etc/environment file to match your one line and then restarting:

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" JAVA_HOME="/usr/lib/jvm/java-8-oracle/jre/bin/java"

to

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" 
JAVA_HOME="/usr/lib/jvm/java-8-oracle/jre/bin/java"

To fix this I was able to split the line in two and then restart (relog should work as well).

This seems to be a bug in either python os library or the ROS scripts usage of it as sourcing that file should work even if they are on a single line.

p.s. if your terminal can't find the commands again you can copy/paste PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" to get them back.