Ask Your Question
0

ROS installation problem about rosdep init

asked 2018-06-19 07:24:02 -0600

WilliamsOyster gravatar image

updated 2018-06-22 10:52:01 -0600

Hi!

I am new to ROS. Just now I tried to install ROS Kinetic on my Ubuntu 16.04 LTS according this tutorial: http://wiki.ros.org/kinetic/Installat... . Everything was smooth until I entered sudo rosdep init in the terminal. It said

sudo: unable to execute /usr/bin/rosdep: Permission denied

Don't know how to deal with this, help!!!

The output of group is ming adm cdrom sudo dip plugdev lpadmin sambashare.

The output of mount is a little bit complicated (sorry for the terrible format):

[..]
/dev/sda4 on / type ext4 (rw,relatime,errors=remount-ro,data=ordered)
[..]
/dev/sdb5 on /home type ext4 (rw,relatime,data=ordered)
[..]

The output of head -n1 /usr/bin/rosdep is

#! /usr/bin/python

There is only one directory named dist-packages which is empty under /usr/bin/python.

The output of ls -al /usr/bin/python is

lrwxrwxrwx 1 root root 24 5月  24 20:52 /usr/bin/python -> /etc/alternatives/python

It works this time by doing

sudo apt-get install --reinstall python-minimal

But new problem appears.... I finished that installation tutorial, and when I try roscore, it outputs this error:

Invalid <param> tag: Cannot load command parameter [rosversion]: no such command [rosversion roslaunch]. 

Param xml is <param command="rosversion roslaunch" name="rosversion"/>

The traceback for the exception was written to the log file
edit retag flag offensive close merge delete

Comments

1

What is the output of ls -al /usr/bin/rosdep?

gvdhoorn gravatar imagegvdhoorn ( 2018-06-19 09:33:42 -0600 )edit

-rwxrwxrwx 1 root root 71 3月 22 07:42 /usr/bin/rosdep

WilliamsOyster gravatar imageWilliamsOyster ( 2018-06-20 00:24:42 -0600 )edit

Is this a good news?

WilliamsOyster gravatar imageWilliamsOyster ( 2018-06-20 00:25:38 -0600 )edit
1

What sort of filesystem did you install your Ubuntu on? On my system, I get:

-rwxr-xr-x 1 root root 71 Aug  4  2017 /usr/bin/rosdep

notice the absence of the w for group and other. Did you change anything?

In any case: is your user a member of the sudo or admin group?

gvdhoorn gravatar imagegvdhoorn ( 2018-06-20 01:35:30 -0600 )edit
1

Also: are you running this in a virtual machine? Or is your system's clock misconfigured? 3月 22 translates to March 22. That is at least 2 months ago.

gvdhoorn gravatar imagegvdhoorn ( 2018-06-20 01:36:38 -0600 )edit

I'd changed the permission state using chmod 777 /usr/bin/rosdep since I saw the bug was "permission denied". About the date problem, I have no idea.

WilliamsOyster gravatar imageWilliamsOyster ( 2018-06-20 02:47:39 -0600 )edit

My system clock is correct and I'm not running a virtual machine. I noticed that the time info in your outcome is almost 1 year ago, so does this really matter? And thanks a lot for your reply.

WilliamsOyster gravatar imageWilliamsOyster ( 2018-06-20 02:49:04 -0600 )edit
1

Ok, here's my suggestion:

  1. don't change permissions manually. If things don't work, it's most of the time a configuration issue. Revert what you did by running sudo apt-get install --reinstall python-rosdep
  2. the date is not important. It's the time the file was last changed/installed.
gvdhoorn gravatar imagegvdhoorn ( 2018-06-20 02:50:15 -0600 )edit

1 Answer

Sort by » oldest newest most voted
1

answered 2018-06-22 00:49:19 -0600

gvdhoorn gravatar image

Can you try:

sudo apt-get install --reinstall python-minimal

and then:

ls -al /usr/bin/python

again?

edit flag offensive delete link more

Comments

Thanks for your time! Deeply appreciate!

WilliamsOyster gravatar imageWilliamsOyster ( 2018-06-23 05:50:21 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2018-06-19 07:24:02 -0600

Seen: 344 times

Last updated: Jun 22 '18