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

Indigo Installation - Ubuntu 14.04 Permission errors

asked 2014-05-16 04:58:18 -0500

DSRadin gravatar image

Hello,

To start I am new to both Ubuntu and ROS.

I am trying to follow the installation guides but am getting bogged down in permissions errors. I installed and removed ROS Indigo once already because I couldn't access the package files for whatever reason.

Now I received this error while running "rosdep update" (step 1.5 of indigo installation instructions)

daver@DSRUbuntu:~$ rosdep update reading in sources list data from /etc/ros/rosdep/sources.list.d

ERROR: Rosdep experienced an error: [Errno 13] Permission denied: '/home/daver/.ros/rosdep/sources.cache' Please go to the rosdep page [1] and file a bug report with the stack trace below. [1] : <rosdep link="" was="" here="">

rosdep version: 0.10.27

Traceback (most recent call last): File "/usr/lib/pymodules/python2.7/rosdep2/main.py", line 121, in rosdep_main exit_code = _rosdep_main(args) File "/usr/lib/pymodules/python2.7/rosdep2/main.py", line 277, in _rosdep_main return _no_args_handler(command, parser, options, args) File "/usr/lib/pymodules/python2.7/rosdep2/main.py", line 285, in _no_args_handler return command_handlerscommand File "/usr/lib/pymodules/python2.7/rosdep2/main.py", line 456, in command_update error_handler=update_error_handler) File "/usr/lib/pymodules/python2.7/rosdep2/sources_list.py", line 423, in update_sources_list retval.append((source, write_cache_file(sources_cache_dir, source.url, rosdep_data))) File "/usr/lib/pymodules/python2.7/rosdep2/sources_list.py", line 492, in write_cache_file os.makedirs(source_cache_d) File "/usr/lib/python2.7/os.py", line 157, in makedirs mkdir(name, mode) OSError: [Errno 13] Permission denied: '/home/daver/.ros/rosdep/sources.cache'

I've tried changing the root folder permissions but it's not applying correctly... I received similar errors on my previous installation attempt (not at this step, but later) and I was able to re-route the temporary cache files but I don't think that applies here.

Any suggestions would be sincerely appreciated.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2014-05-16 05:06:57 -0500

dornhege gravatar image

Delete the .ros ROS folder with sudo (make sure you're not deleting something useful) and rerun rosdep update - NO SUDO HERE!

edit flag offensive delete link more

Comments

Thanks for the reply dornhege - unfortunately it doesn't seem to have worked. Again, I'm showing my ignorance but I couldn't delete /home/daver/.ros achieving the error; daver@DSRUbuntu:~$ sudo rm -f /home/daver/.ros [sudo] password for daver: rm: cannot remove ‘/home/daver/.ros’: Is a directory followed shortly by the same error as before: daver@DSRUbuntu:~$ sudo rm -f /home/daver/.ros/ros daver@DSRUbuntu:~$ rosdep update reading in sources list data from /etc/ros/rosdep/sources.list.d ERROR: Rosdep experienced an error: [Errno 13] Permission denied: '/home/daver/.ros/rosdep/sources.cache' Furthermore, I can't actually find this directory in the file explorer. I'm very confused about what is actually going on here.

DSRadin gravatar image DSRadin  ( 2014-05-16 09:56:36 -0500 )edit

You can't see the directory in the file explorer because its name starts with ".", meaning it is hidden. Try pushing Ctrl+h in the file explorer (nautilus) to toggle hidden file visibility. The other error "...is a directory..." means you need to add "-r" to `rm` to indicate "recursive" delete.

jarvisschultz gravatar image jarvisschultz  ( 2014-05-16 12:36:52 -0500 )edit
1

So command would be `sudo rm -rf /home/daver/.ros` @dornhege is correct... be careful when running commands like this.

jarvisschultz gravatar image jarvisschultz  ( 2014-05-16 12:37:49 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2014-05-16 04:58:18 -0500

Seen: 976 times

Last updated: May 16 '14