rosdep init and update Error 解决方法

rosdep init and update Error

rosdep init Error

$ sudo rosdep init
ERROR: default sources list file already exists:
/etc/ros/rosdep/sources.list.d/20-default.list
Please delete if you wish to re-initialize

Then you can execute
$ sudo rm /etc/ros/rosdep/sources.list.d/20-default.list
You can continue with
$ sudo rosdep init

rosdep update Error

$ rosdep update
If you get
reading in sources list data from /etc/ros/rosdep/sources.list.d
Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml
Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml
ERROR: unable to process source [https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yaml]:
<urlopen error timed out> (https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yaml)

then you can execute the following command:
$ sudo apt-get update
Then you can continue with
$ rosdep update

猜你喜欢

转载自blog.csdn.net/weixin_39036700/article/details/81566982