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

2014年06月18日 Android 14条评论 阅读10335次


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

14 条评论

  1. <a href="http://www.leatheroneph.com/air-max-95-gr%C3%A5-trainersb">air max 95 gr氓</a> <a href="http://www.massageturkey.com/nike-zoom-structure-20-himmelblau-gr%C3%BCn-kurpesd">nike zoom structure 20 himmelblau gr眉n</a> <a href="http://www.codeconuts.com/nike-air-max-2017-schwarz-gr%C3%BCn-03-schuhel">nike air max 2017 schwarz gr眉n 03</a> <a href="http://www.radiationism.com/air-jordan-retro-9-kvinners-r%C3%B8d-mint-gr%C3%B8nn-skoe">air jordan retro 9 kvinners r酶d mint gr酶nn</a> <a href="http://www.chessarbiters.com/adidas-neo-oro-bianca-footg">adidas neo oro bianca</a> <a href="http://www.varisofttech.com/air-jordan-schwarz-blau-sneakerd">air jordan schwarz blau</a>
    chotinaukri http://www.chotinaukri.com/

  2. <a href="http://www.anilcagatay.com/nike-free-5.0-run-2014-rosado-blanco-zapato-schuhee">nike free 5.0 run 2014 rosado blanco zapato</a> <a href="http://www.glpwindsor.com/nike-roshe-run-premium-qs-oro-foote">nike roshe run premium qs oro</a> <a href="http://www.easytoberaw.com/nike-roshe-neon-gr%C3%BCn-skof">nike roshe neon gr眉n</a> <a href="http://www.couponrider.com/julio-jones-authentic-jersey-nflh">julio jones authentic jersey</a> <a href="http://www.boomcogames.com/carolina-hurricanes-third-jersey-nfli">carolina hurricanes third jersey</a> <a href="http://www.roostercole.com/womens-anaheim-ducks-majestic-burgundyteal-vintage-hip-check-lacer-long-sleeve-t-shirt-nflh">womens anaheim ducks majestic burgundyteal vintage hip check lacer long sleeve t shirt</a>
    kudusbilinci http://www.kudusbilinci.com/

  3. <a href="http://www.mlslawfirm.com/nike-cortez-nylon-women-red-white-blue-shoesj">nike cortez nylon women red white blue</a> <a href="http://www.alinakrocheva.com/washington-huskies-nike-ncaa-cuffed-knit-hatk">washington huskies nike ncaa cuffed knit</a> <a href="http://www.sebdmnfv.com/m%C3%A6nd-le-coq-sportif-dark-bl%C3%A5-gr%C3%A5-r%C3%B8d-skoj">m忙nd le coq sportif dark bl氓 gr氓 r酶d</a> <a href="http://www.rgmclaims.com/ralph-lauren-blue-and-white-striped-shirt-womens-poloh">ralph lauren blue and white striped shirt womens</a> <a href="http://www.karmicfix.com/air-max-2017-women-pink-black-shoes-perfect-shoesi">air max 2017 women pink black shoes perfect</a> <a href="http://www.marbacapital.com/blu-pelle-converse-low-scarpej">blu pelle converse low</a>
    alterwina http://www.alterwina.com/

  4. avatar bestzixiutang

    <a href="http://www.cmtalks.com/mujer-air-jordan-retro-7-blanco-negro-p%C3%BArpura-zapatosl">mujer air jordan retro 7 blanco negro p煤rpura</a> <a href="http://www.ianbaaske.com/nike-air-max-270-arrives-in-white-black-shoesk">nike air max 270 arrives in white black</a> <a href="http://www.escawinebar.com/svart-l%C3%A6r-converse-low-obuvi">svart l忙r converse low</a> <a href="http://www.nexcouriers.com/menn-nike-zoom-winflo-2-svart-carbon-gr%C3%A5-obuvk">menn nike zoom winflo 2 svart carbon gr氓</a> <a href="http://www.admitoneuk.com/nike-mercurial-superfly-sg-pro-hvit-svart-volt-obuvi">nike mercurial superfly sg pro hvit svart volt</a> <a href="http://www.rizeingilizce.com/converse-chuck-taylor-todas-star-trainers-blanco-zapatosl">converse chuck taylor todas star trainers blanco</a>
    bestzixiutang http://www.bestzixiutang.com/

  5. avatar kawaiicharm

    <a href="http://www.salervalencia.com/adidas-zx-flux-core-sort-skok">adidas zx flux core sort</a> <a href="http://www.ohsochimp.com/nike-air-max-90-hyp-prm-m%C3%A4nner-2015-bright-wei%C3%9F-schuheh">nike air max 90 hyp prm m盲nner 2015 bright wei脽</a> <a href="http://www.ywlocal.com/nike-zoom-ascention-grey-shoesk">nike zoom ascention grey</a> <a href="http://www.xterraresorts.com/nike-sort-and-hvid-foamposite-skol">nike sort and hvid foamposite</a> <a href="http://www.onlinewithgpc.com/hvit-adidas-sko-stan-smith-obuvk">hvit adidas sko stan smith</a> <a href="http://www.josephinevent.com/gel-quantum-360-maschio-true-rosso-nero-bianca-asics-us-scarpei">gel quantum 360 maschio true rosso nero bianca asics us</a>
    kawaiicharm http://www.kawaiicharm.com/

  6. avatar govtjobsstore

    <a href="http://www.invbybeth.com/adidas-mi-prossoator-scarpeh">adidas mi prossoator</a> <a href="http://www.zeuslazer.com/chuck-taylor-converse-green-shoesk">chuck taylor converse green</a> <a href="http://www.justprogaming.com/ray-ban-jackie-ohh-710-sunglassesh">ray ban jackie ohh 710</a> <a href="http://www.divasorlando.com/nike-air-2018-flyknit-noir-orange-gris-chaussuresl">nike air 2018 flyknit noir orange gris</a> <a href="http://www.ikioto.com/nike-air-presto-camouflage-femmes-rose-fluorescent-vert-chaussuresl">nike air presto camouflage femmes rose fluorescent vert</a> <a href="http://www.julides.com/m%C3%A4nner-nike-dunk-low-iceman-ii-grau-wei%C3%9F-schuhej">m盲nner nike dunk low iceman ii grau wei脽</a>
    govtjobsstore http://www.govtjobsstore.com/

  7. avatar dlxcommerce

    <a href="http://www.hkyahao.com/2018-air-max-off-wei%C3%9F-nike-air-max-270-wei%C3%9F-schuhel">2018 air max off wei脽 nike air max 270 wei脽</a> <a href="http://www.innordicau.com/nike-flyknit-lunar-1-arancia-romania-skoe">nike flyknit lunar 1 arancia romania</a> <a href="http://www.rahdanesh.com/mujeres-air-jordan-retro-10-negro-verde-footg">mujeres air jordan retro 10 negro verde</a> <a href="http://www.myprontocard.com/nike-air-presto-og-for-verkauf-sneakerd">nike air presto og for verkauf</a> <a href="http://www.eldiadeitalia.com/lebron-12-sprite-mix-sko-schuhee">lebron 12 sprite mix sko</a> <a href="http://www.lapakhoki.com/nike-flyknit-roshe-run-wei%C3%9F-kit-footf">nike flyknit roshe run wei脽 kit</a>
    dlxcommerce http://www.dlxcommerce.com/

  8. avatar parlapotuak

    <a href="http://www.bgnesphoto.com/maschio-nike-zoom-pegasus-33-nero-dark-grigio-scarpei">maschio nike zoom pegasus 33 nero dark grigio</a> <a href="http://www.javanbox.com/indiana-pacers-new-era-nba-back-1-2-series-9fifty-snapback-cap-hath">indiana pacers new era nba back 1 2 series 9fifty snapback cap</a> <a href="http://www.koonoovpn.com/converse-bon-march%C3%A9-noir-chaussuresh">converse bon march茅 noir</a> <a href="http://www.thevaporista.com/nike-roshe-run-hommes-breathable-for-summer-noir-jaune-chaussuresj">nike roshe run hommes breathable for summer noir jaune</a> <a href="http://www.encweddings.com/eqt-adidas-adv-rosa-schuhek">eqt adidas adv rosa</a> <a href="http://www.esperteyu.com/san-jose-sharks-goalie-jersey-nflh">san jose sharks goalie jersey</a>
    parlapotuak http://www.parlapotuak.com/

  9. avatar psychedelicsf

    <a href="http://www.trafassi.com/hermes-bracelet-price-dubai-jewelryr">hermes bracelet price dubai</a> <a href="http://www.youtubetune.com/nike-sb-blazer-high-dam%C3%A4nner-grau-sneakere">nike sb blazer high dam盲nner grau</a> <a href="http://www.iseejanemary.com/are-north-face-denali-jackets-waterproof-northfacer">are north face denali jackets waterproof</a> <a href="http://www.polurnetsucks.com/pandora-australia-mothers-day-pandorar">pandora australia mothers day</a> <a href="http://www.esmokecanada.com/pandora-leather-bracelet-instructions-pandorar">pandora leather bracelet instructions</a> <a href="http://www.caberrals.com/womens-mizuno-wave-prophecy-black-yellow-runningc">womens mizuno wave prophecy black yellow</a>
    psychedelicsf http://www.psychedelicsf.com/

  10. avatar townyplay

    <a href="http://www.townyplay.com/hombres-nike-air-max-270-negro-zapatosh">hombres nike air max 270 negro</a> <a href="http://www.djpunjabii.com/nike-air-force-1-mid-negro-game-royal-hombres-zapatosk">nike air force 1 mid negro game royal hombres</a> <a href="http://www.avsomurie.com/north-face-long-fleece-jacket-northfaceh">north face long fleece jacket</a> <a href="http://www.circusveil.com/nike-kobe-11-flyknit-rot-schwarz-schuhek">nike kobe 11 flyknit rot schwarz</a> <a href="http://www.laconiaoil.com/adidas-zx-flux-trainers-bl%C3%A5-skoi">adidas zx flux trainers bl氓</a> <a href="http://www.hurizmir.com/bleu-nike-air-force-1-high-top-chaussuresh">bleu nike air force 1 high top</a>
    townyplay http://www.townyplay.com/

  11. avatar squigglecase

    <a href="http://www.shrinetalk.com/nike-air-max-ltd-r%C3%B8d-and-hvid-butye">nike air max ltd r酶d and hvid</a> <a href="http://www.konyakbs.com/soccer-boots-cleats-adidas-x-15.1-fg-negro-schuhea">soccer boots cleats adidas x 15.1 fg negro</a> <a href="http://www.cheezhayama.com/where-to-comprar-nike-air-max-90-hyperfuse-chaussuresa">where to comprar nike air max 90 hyperfuse</a> <a href="http://www.eagleswingair.com/nike-flyknit-lunar-1-svart-friday-obuva">nike flyknit lunar 1 svart friday</a> <a href="http://www.alchemaerie.com/air-jordan-retro-7-lila-rosa-butyd">air jordan retro 7 lila rosa</a> <a href="http://www.eyecovet.com/asics-gel-noosa-tri-8-flash-gelb-cab-scarpec">asics gel noosa tri 8 flash gelb cab</a>
    [url=http://www.squigglecase.com/]squigglecase[/url]

  12. avatar mandydugan

    <a href="http://www.flushnhunt.com/womens-nike-free-run-2-blue-pink-shoesj">womens nike free run 2 blue pink</a> <a href="http://www.evelpa.com/air-jordan-retro-31-gr%C3%A5-lyser%C3%B8d-skoq">air jordan retro 31 gr氓 lyser酶d</a> <a href="http://www.taaliminfos.com/air-jordan-retro-11-argent-hommesthe-verte-chaussuresl">air jordan retro 11 argent hommesthe verte</a> <a href="http://www.cacikvideo.com/air-jordan-retro-30-bleu-ciel-vert-chaussuresq">air jordan retro 30 bleu ciel vert</a> <a href="http://www.grossavind.com/under-armour-curry-1-low-gold-wei%C3%9F-schuhei">under armour curry 1 low gold wei脽</a> <a href="http://www.boltsfans.com/adidas-damian-lillard-lila-rot-schuheh">adidas damian lillard lila rot</a>
    mandydugan http://www.mandydugan.com/

  13. avatar 曹佟巫烟

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

  14. avatar 屠龙

    没遇到过这种情况。

欢迎留言




用户登录

sitemap