简体   繁体   中英

Android AOSP Repo Init fatal: error unknown url type: https

Can anybody suggest a solution ?

I am running Ubuntu 12.0.4

I have :

 Python 2.6 -- 2.7, which you can download from python.org.

    GNU Make 3.81 -- 3.82, which you can download from gnu.org,

    JDK 6 if you wish to build Gingerbread or newer; JDK 5 for Froyo or older. You can download both from java.sun.com.

    Git 1.7 or newer. You can find it at git-scm.com.

and have run:

$ sudo apt-get install git gnupg flex bison gperf build-essential \
  zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
  libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \
  libgl1-mesa-dev g++-multilib mingw32 tofrodos \
  python-markdown libxml2-utils xsltproc zlib1g-dev:i386
$ sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so

I have setup my Repo:

Make sure you have a bin/ directory in your home directory and that it is included in your path:

$ mkdir ~/bin $ PATH=~/bin:$PATH

Download the Repo tool and ensure that it is executable:

$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo $ chmod a+x ~/bin/repo

And then when I run:

$ repo init -u https://android.googlesource.com/platform/manifest

I get the following error

fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle
fatal: error unknown url type: https

Does anyone have any suggestions what this could be causing this ???

Thanks !!!!

Basically I reinstalled Python again and everything worked. http://www.python.org/download/releases/2.7.5/

Wrong url...

repo init -u https://android.googlesource.com/platform/manifest

I was getting same error. Started editing things and changing stuff cuz thought i was wrong. That url must not be functioning but this works for sure:)

我正在运行Ubuntu 14.04.3修复致命错误

sudo apt-get install phablet-tools

In my case (Fedora 22, Python 2.7.x) python was compiled without openssl support. I installed the openssl-devel package and compiled python from source using pyenv . Now the repo can handle https.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM