Submodule Update


Good Morning:

I was trying to execute the below command from the course:

~$ git submodule update --init --recursive

but it failed. Here are the error messages:

fatal: unable to connect to[0:] errno=_connection time out

fatal: clone of ‘git://’ into submodule path ‘modules/PX4Firmware’ failed.

How do I correct the errors?

Thank you.
Nghia Le


Hi there Ngiah Le!

When you initially cloned the Ardupilot repo, did your URL use…? I believe it is important to use the https:// part here, so if you haven’t I would suggested re-cloning the repo with the added https:// part then seeing if the submodule update works.



Found a solution: (Fix: "git submodule update --init --recursive" ERROR: fatal: "unable to connect to")

git config --global url.“https://”.insteadOf git://
git submodule update --init --recursive