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

thursday's profile - activity

2014-07-03 20:02:52 -0500 received badge  Famous Question (source)
2014-06-30 19:53:45 -0500 commented answer rosdep update Permission error

This worked! Thank you so much. Side note: had no idea that files/directories have owners in linux. Hooray for learning!

2014-06-30 19:52:36 -0500 received badge  Supporter (source)
2014-06-30 19:27:43 -0500 received badge  Notable Question (source)
2014-06-30 03:43:03 -0500 received badge  Popular Question (source)
2014-06-28 14:31:06 -0500 received badge  Editor (source)
2014-06-28 14:29:15 -0500 asked a question rosdep update Permission error

Hi there, can't figure this out.

After following this to the letter:

http://wiki.ros.org/fuerte/Installati...

I am now trying to follow this:

http://robohub.org/up-and-flying-with...

Running 'rosdep update' does not work. I keep getting a permission error regarding some temporary pickle files in .ros/rosdep/sources.cache . I have tried setting all files in that directory to have all permissions for others but this has not worked. I've tried purging, reinstalling, etc, doesn't work. I cannot find a process that fixes this.

Any help at all would be greatly appreciated. Below is a complete error readout:

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

ERROR: Rosdep experienced an error: [Errno 13] Permission denied: '/home/thursday/.ros/rosdep/sources.cache/5f44c73fb5a0e187f088839519d453ff8aa3699e.pickle.tmp.UGtFKu'
Please go to the rosdep page [1] and file a bug report with the stack trace below.
[1] : CANNOTPOSTHYPERLINK

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_handlers[command](options)
  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 495, in write_cache_file
    write_atomic(filepath + PICKLE_CACHE_EXT, pickle.dumps(rosdep_data, -1), True)
  File "/usr/lib/pymodules/python2.7/rosdep2/sources_list.py", line 504, in write_atomic
    fd, filepath_tmp = tempfile.mkstemp(prefix=os.path.basename(filepath) + '.tmp.', dir=os.path.dirname(filepath))
  File "/usr/lib/python2.7/tempfile.py", line 300, in mkstemp
    return _mkstemp_inner(dir, prefix, suffix, flags)
  File "/usr/lib/python2.7/tempfile.py", line 235, in _mkstemp_inner
    fd = _os.open(file, flags, 0600)
OSError: [Errno 13] Permission denied: '/home/thursday/.ros/rosdep/sources.cache/5f44c73fb5a0e187f088839519d453ff8aa3699e.pickle.tmp.UGtFKu'

For further reference here are what some file permissions look like in folders that may have something to do with this:

thursday@daedalus:~$ sudo ls -la /etc/ros/rosdep/sources.list.d
[sudo] password for thursday: 
total 12
drwxr-xr-x 2 root root 4096 Jun 28 12:02 .
drwxr-xr-x 3 root root 4096 Jun 28 12:02 ..
-rw-r--r-- 1 root root  533 Jun 28 12:02 20-default.list

///

thursday@daedalus:~$ sudo ls -la /home/thursday/.ros/rosdep
total 12
drwxr-xr-x 3 root root 4096 Jun 28 11:36 .
drwxr-xr-x 4 root root 4096 Jun 28 11:34 ..
drwxr-xr-x 2 root root 4096 Jun 28 11:36 sources.cache

/// This is where i tried making all these files read/write for all groups. How do you give something the 'd' permission?

thursday@daedalus:~$ sudo ls -la /home/thursday/.ros/rosdep/sources.cache
total 720
drwxr-xr-x 2 root root   4096 ...
(more)
2014-06-28 14:27:01 -0500 asked a question testtesttest

testtesttest