Why shell is crashing using "source /opt/ros/kinetic/setup.bash" after standard installation approach with ubuntu 16.04 xenial?
Hey everyone,
recently i tried to install ros with the standard installation method from http://wiki.ros.org/kinetic/Installat...
with the follwing steps:
1)
sudo sh -c '. /etc/lsb-release && echo "deb http://packages.ros.org.ros.informatik.uni-freiburg.de/ros/ubuntu $DISTRIB_CODENAME main" > /etc/apt/sources.list.d/ros-latest.list'
2)
sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116
3)
sudo apt-get update
4)
sudo apt-get install ros-kinetic-desktop-full
5)
sudo rosdep init
rosdep update
Warning: running 'rosdep update' as root is not recommended. You should run 'sudo rosdep fix-permissions' and invoke 'rosdep update' again without sudo.
sudo rosdep fix-permissions
6)
echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc
source ~/.bashrc
....and this is what i'm encountering in my console:
File "<string>", line 1
import os; print(os.pathsep.join([x for x in "/opt/ros/kinetic/bin:/home/inecho/bin:/home/inecho/.local/bin:/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:/snap/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin:/home/sk/android-sdk-linux/tools:/usr/local/cuda/bin:/home/sk/android-sdk-linux/platform-tools".split(os.pathsep) if not any([d for d in ['cturtle', 'diamondback', 'electric', 'fuerte'] if d in x])]))
^
SyntaxError: invalid syntax
bash: cat: No such file or directory
bash: cat: No such file or directory
bash: python: No such file or directory
bash: awk: No such file or directory
bash: grep: No such file or directory
Afterwards i am not able to type any of shell-commands like ls
until i uncomment the line in ~/.bashrc
again. This is what happens:
inecho@inecho-P50:~$ ls
bash: ls: No such file or directory
Does anyone has a clue whats happening there?
The last lines of my .bashrc
now with the uncommented setup.bash
:
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
fi
export PATH=${PATH}:/home/sk/android-sdk-linux/tools:/usr/local/cuda/bin
export PATH=${PATH}:/home/sk/android-sdk-linux/platform-tools
export LD_LIBRARY_PATH=/usr/local/cuda/lib64
# source /opt/ros/kinetic/setup.bash
Is your shell actually
bash
?Also: it would probably help if you posted some lines from your
.bashrc
file, preferably the ones surrounding thesource /opt/ros/..
line.yes, my shell is bash. i double checked it with
echo $SHELL
. i updated my post with the last lines of my.bashrc
if it helpsWhere is your
JAVA_HOME
being set? What does your/etc/environment
file look like? What aboutecho $PATH
my
/etc/enviroment
saysPATH="/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"
. How can i interpret this? Btw. i'm using linux for a half a year actively so i'm quite unexperienced :)If that is all one line, try splitting it in two and then
source /etc/environment
. I think that should fix it.i changed it without any improvement. still the same error..
Hmm, what does
echo $PATH
output?the same as above for PATH and additionally
JAVA_HOME="/usr/lib/jvm/java-8-oracle/jre/bin/java:/snap/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin:/home/sk/android-sdk-linux/tools:/usr/local/cuda/bin:/home/sk/android-sdk-linux/platform-tools