ROS IOError: [Errno 13] Permission denied 报错

IOError: [Errno 13] Permission denied: '~/.ros/rosdep/sources.cache/index'

运行一些包,如rosrun tf view_frames时报此权限错误

解决 :sudo rosdep fix-permissions


Changing ownership of the ~/.ros directory is the correct fix. rosdep recentlygo a fix-permissions verb that does exactly that and improves the error message, but it has not been released yet, so for now it is easiest to do it manually as @Mehdi Tlili suggests.

Edit: rosdep has been re-released, so if you update it from pip/apt, you shoul have gotten a more useful error message that indicates to run sudo rosdep fix-permissions

参考: https://answers.ros.org/question/175599/rosdep-update-permission-error/

猜你喜欢

转载自blog.csdn.net/fantasysolo/article/details/80431801