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

时间:2013-08-19 15:35:25

标签: android android-source repository

有人可以建议解决方案吗?

我正在运行Ubuntu 12.0.4

我有:

 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.

并且已经运行:

$ 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

我设置了我的回购:

确保您的主目录中有一个bin /目录,并且它包含在您的路径中:

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

下载Repo工具并确保它是可执行的:

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

然后当我跑:

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

我收到以下错误

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

有没有人有任何建议,这可能导致这个?

谢谢!!!!

4 个答案:

答案 0 :(得分:3)

基本上我再次重新安装了Python,一切正常。 http://www.python.org/download/releases/2.7.5/

答案 1 :(得分:0)

错误的网址......

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

我得到同样的错误。开始编辑和改变东西因为我错了。该网址必须无法正常运行,但这肯定有效:)

答案 2 :(得分:0)

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

sudo apt-get install phablet-tools

答案 3 :(得分:0)

在我的情况下(Fedora 22,Python 2.7.x)python是在没有openssl支持的情况下编译的。我使用pyenv从源代码安装了openssl-devel包并编译了python。现在repo可以处理https。