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

2014年06月18日 Android 21条评论 阅读8307次


本文说的是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
看了本文是不是觉得很赞,那就赶紧点击下面按钮分享给身边的朋友吧!

21 条评论

  1. <a href="http://www.unefinemouche.com/notre-dame-fighting-irish-top-of-the-world-ncaa-divison-stretch-cap-hath">notre dame fighting irish top of the world ncaa divison stretch cap</a> <a href="http://www.ayuinc.com/nike-kd-8-noir-argent-chaussuresh">nike kd 8 noir argent</a> <a href="http://www.unirlisboa.com/nike-air-presto-dark-viola-dust-scarpel">nike air presto dark viola dust</a> <a href="http://www.escortfeeds.com/air-jordan-true-flight-sky-blue-grey-shoesj">air jordan true flight sky blue grey</a> <a href="http://www.rdjanitorial.com/nike-air-huarache-s%C3%B8lv-bl%C3%A5-skoi">nike air huarache s酶lv bl氓</a> <a href="http://www.bookoobeats.com/nike-blazer-blu-denim-scarpeq">nike blazer blu denim</a>
    sugarforspice http://www.sugarforspice.com/

  2. <a href="http://www.checkmyvape.com/mens-ron-jaworski-elite-midnight-green-nike-jersey-nfl-philadelphia-eagles-7-home-vapor-untouchable-nflr">mens ron jaworski elite midnight green nike jersey nfl philadelphia eagles 7 home vapor untouchable</a> <a href="http://www.hagertools.com/mens-nike-denver-broncos-80-jake-butt-game-orange-team-color-nfl-jersey-nflx">mens nike denver broncos 80 jake butt game orange team color nfl jersey</a> <a href="http://www.kangenkitchen.com/curry-one-bleu-and-jaune-version-schuheg">curry one bleu and jaune version</a> <a href="http://www.oricastg.com/nike-roshe-run-woven-royal-blau-scarpeg">nike roshe run woven royal blau</a> <a href="http://www.themenfinder.com/nike-kyrie-2-r%C3%B8d-oak-kurpesf">nike kyrie 2 r酶d oak</a> <a href="http://www.turkmendili.com/nike-roshe-run-r%C3%B8ddish-brun-schuheg">nike roshe run r酶ddish brun</a>
    moviezluv http://www.moviezluv.com/

  3. <a href="http://www.blackopsequip.com/adidas-ultra-boost-silber-olympic-obuva">adidas ultra boost silber olympic</a> <a href="http://www.chescombank.com/nike-air-max-lunar-1-for-venta-jacksonville-schuhef">nike air max lunar 1 for venta jacksonville</a> <a href="http://www.dantint.com/air-jordan-1-retro-high-strap-svart-r%C3%B8d-chaussuresg">air jordan 1 retro high strap svart r酶d</a> <a href="http://www.digitisrael.com/air-jordan-4-retro-wei%C3%9F-obuvd">air jordan 4 retro wei脽</a> <a href="http://www.evakloset.com/nike-zoom-winflo-2-orange-gris-kurpesc">nike zoom winflo 2 orange gris</a> <a href="http://www.freakumfest.com/boys-grade-school-nike-air-force-1-low-casual-chaussures-kurpese">boys grade school nike air force 1 low casual chaussures</a>
    eucbowl http://www.eucbowl.com/

  4. <a href="http://www.brickolino.com/nike-mercurial-superfly-cr7-fg-metalleic-s%C3%B8lv-schuheb">nike mercurial superfly cr7 fg metalleic s酶lv</a> <a href="http://www.buymyhost.com/air-jordan-retro-13-femminile-gituttio-blu-butye">air jordan retro 13 femminile gituttio blu</a> <a href="http://www.chaiwanmei.com/nike-air-jordan-13-rosa-and-wei%C3%9F-butye">nike air jordan 13 rosa and wei脽</a> <a href="http://www.getwithfido.com/nike-air-max-95-todas-blanco-used-obuve">nike air max 95 todas blanco used</a> <a href="http://www.hemppiers.com/nike-wmns-free-og-14-br-noir-key-obuvd">nike wmns free og 14 br noir key</a> <a href="http://www.introtecint.com/nike-kd-8-naranja-plata-kurpesf">nike kd 8 naranja plata</a>
    bucketgrills http://www.bucketgrills.com/

  5. <a href="http://www.ee2738v5.com/nike-air-max-2015-light-bl%C3%A5-scarped">nike air max 2015 light bl氓</a> <a href="http://www.et606lut.com/air-max-tailwind-8-kvinders-obuvc">air max tailwind 8 kvinders</a> <a href="http://www.ypfwit80.com/adidas-ace-16.3-primemesh-tf-argento-nero-verde-chaussuresg">adidas ace 16.3 primemesh tf argento nero verde</a> <a href="http://www.vd4lk449.com/nike-air-jordan-6-infrarot-kopen-chaussuresa">nike air jordan 6 infrarot kopen</a> <a href="http://www.mhz23ocs.com/air-jordan-1-high-bianca-elephant-butya">air jordan 1 high bianca elephant</a> <a href="http://www.e324tzub.com/nike-mercurial-superfly-cr7-netsko-butyd">nike mercurial superfly cr7 netsko</a>
    0hicvn40 http://www.0hicvn40.com/

  6. <a href="http://www.hotelfuat.com/nike-kobe-11-low-black-and-white-sneakerb">nike kobe 11 low black and white</a> <a href="http://www.pmisaltriver.com/aidas-boost-clima-chill-hombres-negro-shoesf">aidas boost clima chill hombres negro</a> <a href="http://www.ductambag.com/new-york-yankees-dad-cap-hats">new york yankees dad cap</a> <a href="http://www.priverussia.com/nike-kyrie-2-inferno-court-sneakere">nike kyrie 2 inferno court</a> <a href="http://www.coatsfrance.com/nike-flyknit-lunar1-mennns-sko-gr%C3%A5-svart-royal-obuvd">nike flyknit lunar1 mennns sko gr氓 svart royal</a> <a href="http://www.intoloo.com/game-nike-white-womens-sam-mills-road-jersey-nfl-51-carolina-panthers-nflx">game nike white womens sam mills road jersey nfl 51 carolina panthers</a>
    atolyekarinca http://www.atolyekarinca.com/

  7. <a href="http://www.dansdelas.com/air-jordan-12-nero-varsity-rosso-bianca-mettuttiic-argento-kurpesa">air jordan 12 nero varsity rosso bianca mettuttiic argento</a> <a href="http://www.laurenrouppas.com/nike-air-presto-flyknit-schwarz-belt-kurpesc">nike air presto flyknit schwarz belt</a> <a href="http://www.evameade.com/nike-air-max-90-premium-schwarz-tiger-camo-obuva">nike air max 90 premium schwarz tiger camo</a> <a href="http://www.imageaveinc.com/nike-lebron-14-wei%C3%9F-iridescent-jack-schuhef">nike lebron 14 wei脽 iridescent jack</a> <a href="http://www.ncaquascape.com/adidas-rose-bleu-ciel-or-chaussuresg">adidas rose bleu ciel or</a> <a href="http://www.htgsingapore.com/nike-hypershift-squadron-blu-ink-obuvd">nike hypershift squadron blu ink</a>
    fifteenforty http://www.fifteenforty.com/

  8. <a href="http://www.eworklife.com/nike-lunarepic-low-flyknit-rosa-s%C3%B8lv-obuvc">nike lunarepic low flyknit rosa s酶lv</a> <a href="http://www.fullcountkbo.com/nike-womens-patrick-chung-game-white-road-jersey-new-england-patriots-nfl-23-nflw">nike womens patrick chung game white road jersey new england patriots nfl 23</a> <a href="http://www.shackofstones.com/chicago-bulls-michael-jordan-hoodie-new-adult-size-medium-other-nflv">chicago bulls michael jordan hoodie new adult size medium other</a> <a href="http://www.tamworthbacon.com/nike-free-5.0-tr-fit-3-print-skog">nike free 5.0 tr fit 3 print</a> <a href="http://www.dvmengineers.com/nike-air-max-90-wolf-grey-solar-red-white-black-skob">nike air max 90 wolf grey solar red white black</a> <a href="http://www.questoffine.com/how-to-make-a-childrens-party-hat-hata">how to make a childrens party hat</a>
    bhcsboosters http://www.bhcsboosters.com/

  9. <a href="http://www.daunchbeauty.com/flyknit-roshe-run-crimson-yellow-trainersf">flyknit roshe run crimson yellow</a> <a href="http://www.glamlustlife.com/prada-purse-sale-pradar">prada purse sale</a> <a href="http://www.tumpuanlar.com/bon-march%C3%A9-nike-kyrie-4-hommes-orange-runningb">bon march茅 nike kyrie 4 hommes orange</a> <a href="http://www.mybizcounsel.com/mk-large-crossbody-mkr">mk large crossbody</a> <a href="http://www.inboundhead.com/kobe-9-names-sneakere">kobe 9 names</a> <a href="http://www.aquivlar.com/elite-cody-wallace-jersey-pittsburgh-steelers-72-home-black-nfld">elite cody wallace jersey pittsburgh steelers 72 home black</a>
    ihearyall http://www.ihearyall.com/

  10. <a href="http://www.mikespothole.com/billig-nike-hyperrev-2015-herre-gr%C3%B8n-sneakere">billig nike hyperrev 2015 herre gr酶n</a> <a href="http://www.theclaydoctor.com/nike-hypervenom-lime-gr%C3%BCn-sports-direct-obuvc">nike hypervenom lime gr眉n sports direct</a> <a href="http://www.allthatspool.com/nfl-womens-nike-san-francisco-49ers-navy-banner-state-v-neck-t-shirt-nflw">nfl womens nike san francisco 49ers navy banner state v neck t shirt</a> <a href="http://www.ihavewed.com/chicago-bulls-michael-jordan-hoodie-new-adult-size-medium-other-nflv">chicago bulls michael jordan hoodie new adult size medium other</a> <a href="http://www.cloudsmartin.com/air-jordan-after-game-blue-skog">air jordan after game blue</a> <a href="http://www.myachingoa.com/asics-gel-kinsei-4-grey-screen-skob">asics gel kinsei 4 grey screen</a>
    badacamshotel http://www.badacamshotel.com/

  11. avatar byedrinkusa

    <a href="http://www.honardan.com/adidas-copa-mundial-dark-bleu-zones-obuve">adidas copa mundial dark bleu zones</a> <a href="http://www.honeymodas.com/kvinders-asics-gel-kinsei-4-bl%C3%A5-lyser%C3%B8d-kurpesd">kvinders asics gel kinsei 4 bl氓 lyser酶d</a> <a href="http://www.hookahbasics.com/air-jordan-18-gull-schuhed">air jordan 18 gull</a> <a href="http://www.hosbeyinli.com/yeezy-boost-750-online-venta-today-kurpesf">yeezy boost 750 online venta today</a> <a href="http://www.hotelcantik.com/nike-hyperdunk-2016-lilla-s%C3%B8lv-obuva">nike hyperdunk 2016 lilla s酶lv</a> <a href="http://www.houzall.com/femmes-nike-free-run-5.0-v4-blanc-gris-obuvf">femmes nike free run 5.0 v4 blanc gris</a>
    byedrinkusa http://www.byedrinkusa.com/

  12. 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/

  13. 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/

  14. 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/

  15. 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/

  16. 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/

  17. 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/

  18. 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]

  19. 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/

  20. avatar 曹佟巫烟

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

  21. avatar 屠龙

    没遇到过这种情况。

欢迎留言




用户登录

sitemap