Note: Download Android source need some init steps.

Test on Ubuntu 9.10, use git 1.6.x

you can to follow the step by step http://source.android.com/source/downloading.html document.

but the document lose a few import steps.  you will get the following response.

fatal: The remote end hung up unexpectedly
fatal: cannot obtain manifest git://android.git.kernel.org/platform/manifest.git

you need to add ~/bin to $PATH variables

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

And Git need to configaration user information. follow these steps:

$ git config –global user.name “your name"
$ git config –global user.email “your mail"
$ git config –global color.diff  auto # need to check your terminator
$ git config –global color.branch auto
$ git config –global color.status auto

the configuration will generation a .gitconfig files in user folder, can use any text editor to modify it.

use apt-get to install java5 need add these lines to your /etc/apt/sources.list (note: can modify url(http://us.archive…..) to match your area)

deb http://us.archive.ubuntu.com/ubuntu/ jaunty multiverse
deb http://us.archive.ubuntu.com/ubuntu/ jaunty-updates multiverse

廣告

5 回應 to “Note: Download Android source need some init steps.”

  1. hi David, I guess have more more people want to fetch android 2.0. so server loading to heavy! (I pull it has a week along just finish at now), suggest to use a auto-retry bash script.a example script like the following#!/bin/bashecho "======start repo sync======"repo syncwhile [ $? = 1 ]; do echo "======sync failed, re-sync again======" sleep 3 # delay 3 second to retry. repo syncdone

  2. Again. Thanks a million! this is great. I was thinking about writing a program that does this…but your suggestion is probably smarter.

  3. Hi ,
    Thank you for this post !
    I tried to follow these steps but failed in the first step with the initialization of the git server. So after several attempts I conclude that the problem is at the server side , and it was that, in fact from August 28th the repo servers were hacked!
    for further informations on this you can take a look at http://www.kernel.org in the site news section !

  4. Thanks a lot Kun-Yi

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com Logo

您的留言將使用 WordPress.com 帳號。 登出 / 變更 )

Twitter picture

您的留言將使用 Twitter 帳號。 登出 / 變更 )

Facebook照片

您的留言將使用 Facebook 帳號。 登出 / 變更 )

Google+ photo

您的留言將使用 Google+ 帳號。 登出 / 變更 )

連結到 %s

%d 位部落客按了讚: