ROS Installation Step 5.1 "Permission denied" [closed]

asked 2018-07-31 11:27:37 -0500

salim gravatar image

updated 2018-08-07 04:52:10 -0500

I am trying to install ROS and now I am at step

5.1 First-order dependencies

on ROS Tutorials. When I write $ rospack depends1 beginner_tutorials into the command line that is just like described in the tutorial I can't see the dependencies that are "roscpp rospy std_msgs".Instead of that, I receive an error list consist of permission denied. Below you can find a few last commands before I encountered the errors below:
Reference: installation guide

cd ~/catkin_ws/src
catkin_create_pkg beginner_tutorials std_msgs rospy roscpp
cd ~/catkin_ws
catkin_make
. ~/catkin_ws/devel/setup.bash
rospack depends1 beginner_tutorials

What is wrong with it? You can find the errors below:

[rospack] Unable to create temporary cache file /home/salim/.ros/.rospack_cache.f19Z8n: Permission denied
enter code hereTraceback (most recent call last):
`File "/usr/lib/python2.7/dist-packages/rosdep2/rospack.py", line 59, in init_rospack_interface
lookup = _get_default_RosdepLookup(Options())
File "/usr/lib/python2.7/dist-packages/rosdep2/main.py", line 130, in _get_default_RosdepLookup
verbose=options.verbose)
File "/usr/lib/python2.7/dist-packages/rosdep2/sources_list.py", line 633, in create_default
sources = load_cached_sources_list(sources_cache_dir=sources_cache_dir, verbose=verbose)
File "/usr/lib/python2.7/dist-packages/rosdep2/sources_list.py", line 529, in load_cached_sources_list
with open(cache_index, 'r') as f:
IOError: [Errno 13] Permission denied: '/home/salim/.ros/rosdep/sources.cache/index'
[rospack] Unable to create temporary cache file /home/salim/.ros/.rospack_cache.AGuO7v: Permission denied
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/rosdep2/rospack.py", line 59, in init_rospack_interface
lookup = _get_default_RosdepLookup(Options())
File "/usr/lib/python2.7/dist-packages/rosdep2/main.py", line 130, in _get_default_RosdepLookup
verbose=options.verbose)
File "/usr/lib/python2.7/dist-packages/rosdep2/sources_list.py", line 633, in create_default
sources = load_cached_sources_list(sources_cache_dir=sources_cache_dir, verbose=verbose)
File "/usr/lib/python2.7/dist-packages/rosdep2/sources_list.py", line 529, in load_cached_sources_list
with open(cache_index, 'r') as f:
IOError: [Errno 13] Permission denied: '/home/salim/.ros/rosdep/sources.cache/index'
[rospack] Error: could not call python function 'rosdep2.rospack.init_rospack_interface'

Thanks

Ubuntu 16.04 LTS Kinetic

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by tfoote
close date 2019-07-23 17:04:33.918212

Comments

1

Can you please update your question with a link to the tutorial that you're referring to

jayess gravatar image jayess  ( 2018-07-31 11:53:06 -0500 )edit
2

In addition to what @jayess asks: please copy-paste the exact error message into your question instead of paraphrasing it. Use the edit button/link to update your original question and please use the Preformatted Text button (the one with 101010 on it).

gvdhoorn gravatar image gvdhoorn  ( 2018-07-31 12:13:17 -0500 )edit

I have updated the question

salim gravatar image salim  ( 2018-08-06 15:07:33 -0500 )edit
2

What owner and permission does the file (or the containing directory) have? What exact commands did you run before having the problem?

Dirk Thomas gravatar image Dirk Thomas  ( 2018-08-06 15:42:29 -0500 )edit

I wrote the exact commands in the question : $ rospack depends1 beginner_tutorials

salim gravatar image salim  ( 2018-08-06 16:02:24 -0500 )edit

@salim: @Dirk Thomas is asking what commands you ran before you had this problem.

jayess gravatar image jayess  ( 2018-08-06 16:12:43 -0500 )edit

Thanks @Dirk Thomas, I have updated again.

salim gravatar image salim  ( 2018-08-07 04:52:52 -0500 )edit
1

Still the same question: What owner and permission does the file (or the containing directory) have?

Dirk Thomas gravatar image Dirk Thomas  ( 2018-08-07 07:39:17 -0500 )edit

Hi Dirk, I will send the owner and permission information but I do not know which directory's parameters should I check? Because I only write $ rospack depends1 beginner_tutorials while the line shows salim@salim-Satellite-A200:~$

salim gravatar image salim  ( 2018-08-29 08:56:12 -0500 )edit