简体   繁体   English

Android AOSP Repo Init致命:错误未知网址类型:https

[英]Android AOSP Repo Init fatal: error unknown url type: https

Can anybody suggest a solution ? 有人可以提出解决方案吗?

I am running Ubuntu 12.0.4 我正在运行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: 确保主目录中有一个bin /目录,并且该目录包含在路径中:

$ mkdir ~/bin $ PATH=~/bin:$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 $ 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. 基本上,我再次重新安装了Python,一切正常。 http://www.python.org/download/releases/2.7.5/ 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. 就我而言(Fedora 22,Python 2.7.x),python是在不支持openssl的情况下编译的。 I installed the openssl-devel package and compiled python from source using pyenv . 我安装了openssl-devel软件包,并使用pyenv从源代码编译了python。 Now the repo can handle https. 现在,仓库可以处理https。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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