Chinaunix首页 | 论坛 | 博客
  • 博客访问: 159193
  • 博文数量: 29
  • 博客积分: 1015
  • 博客等级: 上士
  • 技术积分: 300
  • 用 户 组: 普通用户
  • 注册时间: 2011-05-22 12:30
个人简介

喜读书,尤好史。

文章分类

全部博文(29)

文章存档

2012年(10)

2011年(19)

分类: LINUX

2012-04-10 17:40:22

先说现象,git,curl安装过后,早先
    curl > ~/bin/repo
获得的repo一直为空,不知原因是什么?后来翻墙获得了repo,此时
    #repo init -u
得到
    error: The requested URL returned error: 403 while accessing         /info/refs 
在论坛上有人说git-1.6.6及更高版本可解决此问题,
于是下载了git-1.7.9.6安装后果然原来错误没有,但是又有了新的错误
    #repo init -u (这是执行的命令)
    Traceback (most recent call last):
    File "/home/dongg/android_src/.repo/repo/main.py", line 39, in ?
        from subcmds.version import Version
    File "/home/dongg/android_src/.repo/repo/subcmds/__init__.py", line 36, in ?
        ['%s' % name])
    File "/home/dongg/android_src/.repo/repo/subcmds/upload.py", line 220
        if issubclass(type(x), unicode)
Python平常没问题啊,猜测也是版本过低问题,于是升级到Python-2.7.2,
继续
    #repo init -u
发现
    fatal: '../platform/bionic.git' does not appear to be a git repository 
    fatal: The remote end hung up unexpectedly 
    error: Cannot fetch platform/bionic* 
最后发现是当前目录.repo下的文件有冲突,删除。
继续,问题解决。


在升级Python的过程中有个小插曲,make时提示:
    Python build finished, but the necessary bits to build these modules were not found:
        _tkinter           bsddb185           sunaudiodev
    To find the necessary bits, look in setup.py in detect_modules() for the module's name.
查了一下,发现是缺少这几个模块,并且如果不是重要模块可以忽略。因为这不是重点,就没继续。
这样repo sync起作用了。
但是
    #curl > ~/bin/repo
依然不能获得repo,于是尝试着升级curl至7.25.0.升级后问题未解决,原因不明。

把我获得的repo附上 repo.txt   

阅读(7719) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~