Ask Your Question
0

What does [rospack] Permission denied means?

asked 2018-12-29 10:00:31 -0500

magole gravatar image

updated 2018-12-29 10:29:37 -0500

gvdhoorn gravatar image

Hi, I've just installed ROS Kinetic with other packages as opencv, gazebo, turtlebot, rplidar and intelrealsense. The thing is that now when I open a new terminal console window or tab appear three errors about rospack, the following:

[rospack] Unable to create temporary cache file /home/pc2/.ros/.rospack_cache.38dCXr: Permission denied
[rospack] Unable to create temporary cache file /home/pc2/.ros/.rospack_cache.t3sveu: Permission denied
[rospack] Unable to create temporary cache file /home/pc2/.ros/.rospack_cache.hlp6zx: Permission denied

And I can't do anything, neither run roscore.

edit retag flag offensive close merge delete

Comments

1

Did you at any point run rospack as the root user? What is the output of:

ls -al /home/pc2/.ros/.rospack_cache.38dCXr

Is pc2 the name of your user account, or some other user?

gvdhoorn gravatar image gvdhoorn  ( 2018-12-29 10:30:53 -0500 )edit

pc2 is the only user in the computer. I didn't run rospack at any moment, I just installed all and this appeared. I've seen that each time I open a new terminal different files cause this rospack error. The output is always: ls: can't access to 'the file': file or directory doesen't exist

magole gravatar image magole  ( 2018-12-29 10:59:27 -0500 )edit

What is the output of ls -al $HOME/.ros?

gvdhoorn gravatar image gvdhoorn  ( 2018-12-30 09:57:15 -0500 )edit

thanks for the feedback gvdhoorn :)

magole gravatar image magole  ( 2018-12-30 10:29:33 -0500 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2018-12-30 10:25:05 -0500

magole gravatar image

updated 2019-01-04 06:53:34 -0500

gvdhoorn gravatar image

Finally I got it, I changed the permissions on the ~/.ros archive and that's it

sudo chown -R $USER ~/.ros
edit flag offensive delete link more

Comments

Which user was the owner before you changed it to your user?

gvdhoorn gravatar image gvdhoorn  ( 2018-12-30 10:36:03 -0500 )edit

root I think so, but Im not sure. I just changed the user, someone told me to do it in order to solve the problem so I did it without knowing which user was owning the archive ./ros before.

magole gravatar image magole  ( 2019-01-04 05:19:19 -0500 )edit
1

root I think

well that would certainly be the problem there.

gvdhoorn gravatar image gvdhoorn  ( 2019-01-04 06:53:15 -0500 )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-12-29 10:00:31 -0500

Seen: 1,255 times

Last updated: Jan 04 '19