Search code examples
gitandroid-sourcerepository

Getting fatal error while downloading android source code using Repo


I want to download android source code. I followed following steps,

$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
$ chmod a+x ~/bin/repo
$ mkdir android-source
$ cd android-source
$ repo init -u https://android.googlesource.com/platform/manifest

but getting error

**Get https://gerrit.googlesource.com/git-repo
fatal: Unable to find remote helper for 'https'**

I am using Ubuntu-10.04 and I have installed required all the packages and followed all the step mentioned over here

Any help would be appreciated,

Thanks, Nirav


Solution

  • If you can't get curl to work, you can use

    wget -O - https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
    

    instead.

    BTW, you can check if your curl version supports https by running

    curl -V
    

    which should print "https" somewhere if it does.