rosdep init can't find the solution to the command

rosdep init can't find the solution to the command

problem

I used a virtual machine before, but I finally installed the dual system win10+ubuntu18.04 today. Everything went well. Then I installed ROS. I encountered a few problems. After searching, I wrote the series of solutions and sources here.

Execute after installation

sudo rosdep init

Error:

sudo: rosdep:找不到命令

Solution

Refer to https://blog.csdn.net/qq_14977553/article/details/107493616
because the package python-rosdep is missing, just install it.

sudo apt-get install python-rosdep

After the installation is complete, execute again

sudo rosdep init

Continue to report errors:

ERROR: cannot download default sources list from:
https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/sources.list.d/20-default.list
Website may be down.

Refer to https://community.bwbot.org/topic/811/rosdep-init- or rosdep-update- the solution to the connection error. The
reason may be that the website is blocked. Modify the host file and add the ip of the website.

Open the host file:

sudo gedit /etc/hosts

Add at the end of the text:

151.101.84.133  raw.githubusercontent.com

Save and exit, re-execute

sudo rosdep init
rosdep update

The result is normal and the problem is solved.

Guess you like

Origin blog.csdn.net/weixin_44911075/article/details/114103319