Hello !
It is a common issue for which you'll find answer on this website.
You may have a proxy / firewall that is preventing you to get internet access. You should configure it.
Please look for other threads in the community website to find related issues disussion.
Thanks!