Unable to clone Buildroot repository

756 views Asked by At

I'am trying to clone buildroot repository by utilising the following command:

> git clone https://github.com/buildroot/buildroot.git
Cloning into 'buildroot'...
fatal: unable to access 'https://github.com/buildroot/buildroot.git/': Could not resolve host: github.com

Could you please help me undrestand what's wrong with this command ?

EDIT

The result of nslookup github.com is:

> nslookup github.com
;; Got SERVFAIL reply from 192.168.249.10, trying next server
;; connection timed out; no servers could be reached
1

There are 1 answers

0
Mouin On BEST ANSWER

The problem is resolved.

What i have done : On firefox browser

  preferences
     advanced:network:settings

There is proxy settings of the browser HTTP Proxy=my_proxy and Port=my_port.

I configure HTTPS_PROXY as follow:

export HTTPS_PROXY=my_proxy:my_port

And the cloning works as expected.

I go on this solution because the link can be opened with a browser and not with the command line, so surely there is a missing confguration in shell env variable.

similar question(pointed by @Deepak Mahakale) : could not resolve host github.com error while cloning remote repository in git