Cannot reach online repositories

This is my first Asterisk/FreePBX build, I can’t get my box to connect to the online repositories to get modules/updates…any help?

If you nano /etc/hosts you should have a entry that looks like this:
127.0.0.1 localhost
If you don’t, add it and save it.

Hope that helps