Building APM Plane from source fails for navio2

I’m trying (and failing) to build apm-Plane for my shiny new navio2:
The provided binaries for apm don’t include Plane (see here)
Below are the results of sudo make navio

Checking modules
modules/PX4Firmware/.git missing - need module init
+ git submodule init
Submodule 'modules/PX4Firmware' (git://github.com/diydrones/PX4Firmware.git) registered for path 'modules/PX4Firmware'
Submodule 'modules/PX4NuttX' (git://github.com/diydrones/PX4NuttX.git) registered for path 'modules/PX4NuttX'
Submodule 'modules/gbenchmark' (git://github.com/google/benchmark.git) registered for path 'modules/gbenchmark'
Submodule 'gtest' (git://github.com/diydrones/googletest) registered for path 'modules/gtest'
Submodule 'modules/mavlink' (git://github.com/diydrones/mavlink) registered for path 'modules/mavlink'
Submodule 'modules/uavcan' (git://github.com/diydrones/uavcan.git) registered for path 'modules/uavcan'
Submodule 'modules/waf' (git://github.com/diydrones/waf.git) registered for path 'modules/waf'
+ git submodule update
Cloning into 'modules/PX4Firmware'...
fatal: unable to connect to github.com:
github.com: Name or service not known

Clone of 'git://github.com/diydrones/PX4Firmware.git' into submodule path 'modules/PX4Firmware' failed
+ echo git submodule update failed
git submodule update failed
+ git submodule status
-3dcdec1fe106d00d7ab584b45db5e37b93ef0a22 modules/PX4Firmware
-d48fa3072b2396c489966c4ab10183ac7cf3dea9 modules/PX4NuttX
-006d23ccca1375a973b7fae0cc351cedb41b812a modules/gbenchmark
-c99458533a9b4c743ed51537e25989ea55944908 modules/gtest
-f8a672f6a08a9b06cacb8b9bacddba2590276904 modules/mavlink
-6dd432c9742c22e1dd1638c7f91cf937e4bdb2f1 modules/uavcan
-878ab1e29494e28236a260212a5021b1de35d9a3 modules/waf
+ exit 1
../mk/modules.mk:8: recipe for target 'CHECK_MODULES' failed
make: *** [CHECK_MODULES] Error 1

Any help?

This looks like you have not pulled the entire git repo. You appear to be missing the git sub modules.

I would suggest you delete the repo again or try to pull the sub modules that are missing.
git submodule init
git submodule update .

Thanks Adric - that fixed it.
It’s always the little mistakes that cost the most time…