ubuntu上下载android4.4源码过程的失败

2014年06月18日 Android 10条评论 阅读7473次


本文说的是ubuntu上下载android4.4源码的一些步骤和问题,以及最后失败的原因。

首先oracle的virtuallbox上安装ubuntu。
这里ubuntu选择了目前最新版本的14.04。
ubuntu.jpgUbuntu 14.04国内下载镜像(部分)

中国科学技术大学:http://mirrors.ustc.edu.cn/ubuntu-releases/14.04/<br /> 兰州大学:http://mirror.lzu.edu.cn/ubuntu-releases/14.04/<br /> 清华大学:http://mirrors.tuna.tsinghua.edu.cn/ubuntu-releases/14.04/<br /> 网易镜像:http://mirrors.163.com/ubuntu-releases/14.04/<br /> 阿里云镜像:http://mirrors.aliyun.com/ubuntu-releases/14.04/<br /> 华中科技大学:http://mirrors.hust.edu.cn/ubuntu-releases/14.04/<br /> 天津大学: http://mirror.tju.edu.cn/ubuntu-releases/14.04/<br /> 上海交通大学: http://ftp.sjtu.edu.cn/ubuntu-cd/14.04/<br /> 北京理工大学: http://mirror.bit.edu.cn/ubuntu-releases/14.04/<br />

提示用户该计算机上没有任何操作系统,则选择第一个选项,也就是默认的就可以。下面的两个附属复选框也默认,不有去勾选
设置一个用户名和对应的密码
大约25min,安装完成。提示重启,但我这里却悲剧地发生


Ctrl+Alt+T,快捷键打开终端输入命令

为了启用root 帐号(也就是设置一个口令)使用:
sudo passwd root
此时设置一个密码,重复确认一遍密码

安装curl工具

$       sudo apt-get install curl

 

git工具的安装(按照如下方式安装最新版)

增加ppa

$       sudo apt-add-repository ppa:git-core/ppa

$       sudo apt-get update

$       sudo apt-get install git

git的版本号就是最新的

$       git --version

git version 1.8.5.2

错误:sudo apt-add-repository ppa:git-core/ppa时出现错误:gpg: requesting key E1DF1F24 from hkp server keyserver.ubuntu.com / gpgkeys: HTTP fetch error 7: couldn't connect to host

原因:keyserver.ubuntu.com使用非标准的11371端口,而一般公司的防火墙都屏蔽掉了该端口,而允许标准的80端口。

所以可以以如下方式强行使用80端口添加软件源:

$       sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 E1DF1F24

绿色部分是你要请求的Key.

repo工具的下载
在自己当前用户下简历bin文件夹

mkdir bin

cd bin

下载repo版本管理工具

curl http://android.git.kernel.org/repo&gt; ~/bin/repo

chmod a+x repo


repo下载很难,貌似和国内网络环境的问题
我的做法是 在Windows上下载完成得到文件后复制到到ubuntu系统中。
之后再修改可执行权限。到此为止,完全没问题的。

但根据android官网上的描述,接下来执行repo init的时候,我却被卡住了,一直提示网站不可链接,估计是圈Guo Nei的网络问题了,奇葩啊!尝试在LINUX上更科学的上网试试,但我被各种限制阻拦了。
折腾了两天的时间,最后决定放弃。
改用在Windows上下载源码的方式,后文继续说Windows上下载android4.4源码的方式。

分享本文至:

WRITTEN BY

avatar
本文标签:androidubuntu
看了本文是不是觉得很赞,那就赶紧点击下面按钮分享给身边的朋友吧!

10 条评论

  1. avatar dkouevy6

    <a href="http://www.8eqraqzg.com/nike-air-max-95-hvit-solar-r%C3%B8d-kurpesb">nike air max 95 hvit solar r酶d</a> <a href="http://www.2ihz9gpj.com/nike-free-flyknit-3.0-mennns-bl%C3%A5-dungarees-kurpesd">nike free flyknit 3.0 mennns bl氓 dungarees</a> <a href="http://www.l4ohbay4.com/nike-kd-8-lyser%C3%B8d-r%C3%B8d-kurpesc">nike kd 8 lyser酶d r酶d</a> <a href="http://www.06eexrxg.com/nike-zoom-pegasus-31-kvinners-svart-knight-scarpec">nike zoom pegasus 31 kvinners svart knight</a> <a href="http://www.2wfq945g.com/nike-free-run-5.0-nero-femminile-australia-schuhee">nike free run 5.0 nero femminile australia</a> <a href="http://www.7quwnxec.com/femminile-nike-free-run-4.0-verde-gituttio-obuvf">femminile nike free run 4.0 verde gituttio</a>
    dkouevy6 http://www.dkouevy6.com/

  2. avatar jschwimmermd

    <a href="http://www.iofficeadmin.com/gold-hermes-belt-hermesr">gold hermes belt</a> <a href="http://www.scarystate.com/nike-air-force-1-puerto-rico-sko-shoesv">nike air force 1 puerto rico sko</a> <a href="http://www.emtekmakina.com/coach-tote-ipad-pen-coache">coach tote ipad pen</a> <a href="http://www.solidgoldpay.com/bon-march%C3%A9-adidas-damian-lillard-hommes-bleu-shoesa">bon march茅 adidas damian lillard hommes bleu</a> <a href="http://www.sobresazucar.com/nike-air-jordan-8-aqua-skos">nike air jordan 8 aqua</a> <a href="http://www.zarabahmani.com/ferragamo-logo-belt-beltr">ferragamo logo belt</a>
    jschwimmermd http://www.jschwimmermd.com/

  3. avatar visiotimes

    <a href="http://www.mysonno.com/adidas-superstar-2-light-blau-shoesv">adidas superstar 2 light blau</a> <a href="http://www.retainchoices.com/free-og-14-br-white-grey-runninga">free og 14 br white grey</a> <a href="http://www.gdaypeter.com/ray-ban-andy-vs-justin-sunglassesr">ray ban andy vs justin</a> <a href="http://www.motirealtor.com/reebok-gl-6000-white-shoesv">reebok gl 6000 white</a> <a href="http://www.josedeusebio.com/nike-air-max-bw-classic-g%C3%BCnstig-skow">nike air max bw classic g眉nstig</a> <a href="http://www.besoksfolder.com/mackage-leather-jacket-toronto-mackager">mackage leather jacket toronto</a>
    visiotimes http://www.visiotimes.com/

  4. avatar brianrubeo

    <a href="http://www.instabuttons.com/nike-sb-blazer-mid-herre-s%C3%B8lv-skoe">nike sb blazer mid herre s酶lv</a> <a href="http://www.natalbags.com/new-balance-373-pret-skow">new balance 373 pret</a> <a href="http://www.oricastg.com/pink-silver-mens-nike-free-run-4-shoes-trainersa">pink silver mens nike free run 4 shoes</a> <a href="http://www.raynne.com/adidas-mens-solar-boost-running-sneakers-skot">adidas mens solar boost running sneakers</a> <a href="http://www.elitoyreviews.com/green-white-mens-new-balance-890-shoes-shoese">green white mens new balance 890 shoes</a> <a href="http://www.gaeconomics.com/pandora-new-born-baby-charms-pandorar">pandora new born baby charms</a>
    brianrubeo http://www.brianrubeo.com/

  5. avatar hirepeyton

    <a href="http://www.nowminning.com/tenis-converse-shoesz">tenis converse</a> <a href="http://www.tryautolikes.com/billig-nike-lunarepic-low-flyknit-herren-gr%C3%BCn-trainersa">billig nike lunarepic low flyknit herren gr眉n</a> <a href="http://www.melekmelodifm.com/pandora-style-necklace-pandorar">pandora style necklace</a> <a href="http://www.myelectricrc.com/how-to-clean-jordan-6-black-infrared-runningg">how to clean jordan 6 black infrared</a> <a href="http://www.marijuanapeer.com/white-leather-converse-shoesz">white leather converse</a> <a href="http://www.pritoi.com/purple-and-turquoise-jordan-13-trainersd">purple and turquoise jordan 13</a>
    hirepeyton http://www.hirepeyton.com/

  6. avatar hopingforsnow

    <a href="http://www.kosarkomur.com/lebron-13-limited-edition-doernbecher-skof">lebron 13 limited edition doernbecher</a> <a href="http://www.plakglas.com/nike-free-4-mujeres-oro-sportse">nike free 4 mujeres oro</a> <a href="http://www.quaderealty.com/womens-nike-cortez-grey-green-runningd">womens nike cortez grey green</a> <a href="http://www.captmollie.com/doolittle-sean-62-jersey-xl-nflf">doolittle sean 62 jersey xl</a> <a href="http://www.thermilax.com/air-max-2015-grey-hair-skoa">air max 2015 grey hair</a> <a href="http://www.ladivorcecpa.com/nike-free-1.0-mujeres-p%C3%BArpura-runningd">nike free 1.0 mujeres p煤rpura</a>
    hopingforsnow http://www.hopingforsnow.com/

  7. avatar naturalcitral

    <a href="http://www.brutalistmap.com/mens-north-face-down-jacket-clearance-northfacec">mens north face down jacket clearance</a> <a href="http://www.paulawooley.com/prada-quilted-nylon-bag-pradar">prada quilted nylon bag</a> <a href="http://www.hagertools.com/nike-air-zoom-pegasus-32-black-black-skos">nike air zoom pegasus 32 black black</a> <a href="http://www.signalsvideo.com/mlb-jerseys-san-diego-padres-44-jake-peavy-home-white-jerseys-nfld">mlb jerseys san diego padres 44 jake peavy home white jerseys</a> <a href="http://www.blainefxb.com/bon-march%C3%A9-nike-air-force-1-flyknit-high-hommes-argent-skod">bon march茅 nike air force 1 flyknit high hommes argent</a> <a href="http://www.linamauri.com/burberry-check-print-silk-scarf-scarfr">burberry check print silk scarf</a>
    [url=http://www.naturalcitral.com/]naturalcitral[/url]

  8. avatar hieuphamdmd

    <a href="http://www.govolsrealtor.com/mulberry-purse-ioffer-number-mulberrye">mulberry purse ioffer number</a> <a href="http://www.djdiscgolf.com/nike-free-3.0-v2-dam%C3%A4nner-silber-trainersd">nike free 3.0 v2 dam盲nner silber</a> <a href="http://www.saraviquez.com/canada-goose-montebello-purple-canadagooser">canada goose montebello purple</a> <a href="http://www.dfweliquid.com/ralph-lauren-oblong-silk-scarf-model-scarfa">ralph lauren oblong silk scarf model</a> <a href="http://www.mrforgps.com/prada-totes-yellow-wine-pradad">prada totes yellow wine</a> <a href="http://www.nunbori.com/womens-nike-air-max-90-hyperfuse-premium-skor">womens nike air max 90 hyperfuse premium</a>
    hieuphamdmd http://www.hieuphamdmd.com/

  9. avatar 曹佟巫烟

    话费点卡直充平台: http://temai.ofcard.com

  10. avatar 屠龙

    没遇到过这种情况。

欢迎留言




用户登录

sitemap