android 下载不了源代码?

来源:互联网 发布:c语言运算符优先级例题 编辑:程序博客网 时间:2024/04/29 16:27

情况1:

root@ubuntu:/work/android# git clone git://android.git.kernel.org/repo > ~/bin/repo

android.git.kernel.org[0: 180.168.41.175]: errno=Connection refused

fatal: unable to connect a socket (Connection refused)

情况2:

root@ubuntu:/work/android# wget http://android.git.kernel.org/repo
--2011-09-13 05:13:03--  http://android.git.kernel.org/repo
Resolving android.git.kernel.org... 180.168.41.175
Connecting to android.git.kernel.org|180.168.41.175|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 686 [text/html]
Saving to: `repo.1'


100%[=====================================>] 686         --.-K/s   in 0s      


2011-09-13 05:13:15 (51.8 MB/s) - `repo.1' saved [686/686]

但是文件的内容如下:

root@ubuntu:/work/android# cat repo 
<html><head></head>
<script type="text/javascript">var pp = "162&pre="+(new Date()).getTime();
var sa = "http://sh.114so.cn/";
var s=String(window.location.href); var host=escape(s.substring(7,s.indexOf('/',7)));
var ref=escape(document.referrer); s = escape(s);
var su = s+"&host="+host+"&refer="+ref+"&server="+pp;
function loadfr(){ document.getElementById("fr1").src = sa+"dnsC.aspx?AIMT="+su; }
function refreshPage(){ document.location = sa+"dnsB.aspx?AIMT="+su; }
if (self.location == top.location){ document.location= sa+"dnsA.aspx?AIMT="+su; }
else { refreshPage(); }
</script><frameset rows="*,0"><frame id="main" src=""><frame id="fr1" src=""></frameset><body></body></html>


执行./repo init -u git://android.git.kernel.org/platform/manifest.git就报错

情况3:

root@ubuntu:/work/android#curl http://android.git.kernel.org/repo > ~/bin/repo

repo的内容和上面的一样







原创粉丝点击