|
发表于 2017-4-16 10:12:33
18941 浏览 4 回复
repo下载Android4.4源码,并没有提示输入账户和邮箱,直接报错
fh@pc:~/GitHub/android4.4$ repo init -u https://github.com/TOPEET-Develop/android.git -b exynos4412_android4.4.4_master
Get https://code.csdn.NET/kangear/git-repo.git
remote: Counting objects: 3146, done.
remote: Compressing objects: 100% (1328/1328), done.
remote: Total 3146 (delta 1973), reused 2931 (delta 1764)
Receiving objects: 100% (3146/3146), 1.20 MiB | 1.28 MiB/s, done.
Resolving deltas: 100% (1973/1973), done.
From https://code.csdn.NET/kangear/git-repo
* [new branch] master -> origin/master
* [new branch] stable -> origin/stable
* [new tag] v1.0 -> v1.0
* [new tag] v1.0.1 -> v1.0.1
* [new tag] v1.0.2 -> v1.0.2
* [new tag] v1.0.3 -> v1.0.3
* [new tag] v1.0.4 -> v1.0.4
* [new tag] v1.0.5 -> v1.0.5
* [new tag] v1.0.6 -> v1.0.6
* [new tag] v1.0.7 -> v1.0.7
* [new tag] v1.0.8 -> v1.0.8
* [new tag] v1.0.9 -> v1.0.9
* [new tag] v1.1 -> v1.1
* [new tag] v1.10.0 -> v1.10.0
* [new tag] v1.10.1 -> v1.10.1
* [new tag] v1.10.2 -> v1.10.2
* [new tag] v1.10.3 -> v1.10.3
* [new tag] v1.10.4 -> v1.10.4
* [new tag] v1.11.0 -> v1.11.0
* [new tag] v1.11.1 -> v1.11.1
* [new tag] v1.12.0 -> v1.12.0
* [new tag] v1.12.1 -> v1.12.1
* [new tag] v1.12.10 -> v1.12.10
* [new tag] v1.12.11 -> v1.12.11
* [new tag] v1.12.12 -> v1.12.12
* [new tag] v1.12.13 -> v1.12.13
* [new tag] v1.12.14 -> v1.12.14
* [new tag] v1.12.15 -> v1.12.15
* [new tag] v1.12.16 -> v1.12.16
* [new tag] v1.12.17 -> v1.12.17
* [new tag] v1.12.18 -> v1.12.18
* [new tag] v1.12.19 -> v1.12.19
* [new tag] v1.12.2 -> v1.12.2
* [new tag] v1.12.20 -> v1.12.20
* [new tag] v1.12.21 -> v1.12.21
* [new tag] v1.12.22 -> v1.12.22
* [new tag] v1.12.3 -> v1.12.3
* [new tag] v1.12.3.1 -> v1.12.3.1
* [new tag] v1.12.4 -> v1.12.4
* [new tag] v1.12.5 -> v1.12.5
* [new tag] v1.12.6 -> v1.12.6
* [new tag] v1.12.7 -> v1.12.7
* [new tag] v1.12.8 -> v1.12.8
* [new tag] v1.12.9 -> v1.12.9
* [new tag] v1.2 -> v1.2
* [new tag] v1.3 -> v1.3
* [new tag] v1.3.1 -> v1.3.1
* [new tag] v1.3.2 -> v1.3.2
* [new tag] v1.4 -> v1.4
* [new tag] v1.4.1 -> v1.4.1
* [new tag] v1.4.2 -> v1.4.2
* [new tag] v1.4.3 -> v1.4.3
* [new tag] v1.4.4 -> v1.4.4
* [new tag] v1.5 -> v1.5
* [new tag] v1.5.1 -> v1.5.1
* [new tag] v1.6 -> v1.6
* [new tag] v1.6.1 -> v1.6.1
* [new tag] v1.6.10 -> v1.6.10
* [new tag] v1.6.10.1 -> v1.6.10.1
* [new tag] v1.6.10.2 -> v1.6.10.2
* [new tag] v1.6.2 -> v1.6.2
* [new tag] v1.6.3 -> v1.6.3
* [new tag] v1.6.4 -> v1.6.4
* [new tag] v1.6.5 -> v1.6.5
* [new tag] v1.6.6 -> v1.6.6
* [new tag] v1.6.7 -> v1.6.7
* [new tag] v1.6.7.1 -> v1.6.7.1
* [new tag] v1.6.7.2 -> v1.6.7.2
* [new tag] v1.6.7.3 -> v1.6.7.3
* [new tag] v1.6.7.4 -> v1.6.7.4
* [new tag] v1.6.7.5 -> v1.6.7.5
* [new tag] v1.6.8 -> v1.6.8
* [new tag] v1.6.8.1 -> v1.6.8.1
* [new tag] v1.6.8.10 -> v1.6.8.10
* [new tag] v1.6.8.11 -> v1.6.8.11
* [new tag] v1.6.8.2 -> v1.6.8.2
* [new tag] v1.6.8.3 -> v1.6.8.3
* [new tag] v1.6.8.4 -> v1.6.8.4
* [new tag] v1.6.8.5 -> v1.6.8.5
* [new tag] v1.6.8.6 -> v1.6.8.6
* [new tag] v1.6.8.7 -> v1.6.8.7
* [new tag] v1.6.8.8 -> v1.6.8.8
* [new tag] v1.6.8.9 -> v1.6.8.9
* [new tag] v1.6.9 -> v1.6.9
* [new tag] v1.6.9.1 -> v1.6.9.1
* [new tag] v1.6.9.2 -> v1.6.9.2
* [new tag] v1.6.9.3 -> v1.6.9.3
* [new tag] v1.6.9.4 -> v1.6.9.4
* [new tag] v1.6.9.5 -> v1.6.9.5
* [new tag] v1.6.9.6 -> v1.6.9.6
* [new tag] v1.6.9.7 -> v1.6.9.7
* [new tag] v1.6.9.8 -> v1.6.9.8
* [new tag] v1.7 -> v1.7
* [new tag] v1.7.1 -> v1.7.1
* [new tag] v1.7.2 -> v1.7.2
* [new tag] v1.7.3 -> v1.7.3
* [new tag] v1.7.3.1 -> v1.7.3.1
* [new tag] v1.7.4 -> v1.7.4
* [new tag] v1.7.4.1 -> v1.7.4.1
* [new tag] v1.7.4.2 -> v1.7.4.2
* [new tag] v1.7.4.3 -> v1.7.4.3
* [new tag] v1.7.5 -> v1.7.5
* [new tag] v1.7.6 -> v1.7.6
* [new tag] v1.7.6.1 -> v1.7.6.1
* [new tag] v1.7.7 -> v1.7.7
* [new tag] v1.7.7.1 -> v1.7.7.1
* [new tag] v1.7.7.2 -> v1.7.7.2
* [new tag] v1.7.7.3 -> v1.7.7.3
* [new tag] v1.7.7.4 -> v1.7.7.4
* [new tag] v1.7.7.5 -> v1.7.7.5
* [new tag] v1.7.7.6 -> v1.7.7.6
* [new tag] v1.7.8 -> v1.7.8
* [new tag] v1.7.8.1 -> v1.7.8.1
* [new tag] v1.7.8.2 -> v1.7.8.2
* [new tag] v1.8.0 -> v1.8.0
* [new tag] v1.8.1 -> v1.8.1
* [new tag] v1.8.2 -> v1.8.2
* [new tag] v1.9.0 -> v1.9.0
* [new tag] v1.9.1 -> v1.9.1
* [new tag] v1.9.2 -> v1.9.2
* [new tag] v1.9.3 -> v1.9.3
* [new tag] v1.9.4 -> v1.9.4
* [new tag] v1.9.5 -> v1.9.5
* [new tag] v1.9.6 -> v1.9.6
Get https://github.com/TOPEET-Develop/android.git
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:03 --:--:-- 0
curl: (22) The requested URL returned error: 404 Not Found
Server does not provide clone.bundle; ignoring.
remote: Counting objects: 77, done.
remote: Total 77 (delta 0), reused 0 (delta 0), pack-reused 77
Unpacking objects: 100% (77/77), done.
From https://github.com/TOPEET-Develop/android
* [new branch] exynos4412_android4.0.3_master -> origin/exynos4412_android4.0.3_master
* [new branch] exynos4412_android4.4.4_master -> origin/exynos4412_android4.4.4_master
Traceback (most recent call last):
File "/home/fh/GitHub/android4.4/.repo/repo/main.py", line 500, in <module>
_Main(sys.argv[1:])
File "/home/fh/GitHub/android4.4/.repo/repo/main.py", line 476, in _Main
result = repo._Run(argv) or 0
File "/home/fh/GitHub/android4.4/.repo/repo/main.py", line 155, in _Run
result = cmd.Execute(copts, cargs)
File "/home/fh/GitHub/android4.4/.repo/repo/subcmds/init.py", line 395, in Execute
self._ConfigureUser()
File "/home/fh/GitHub/android4.4/.repo/repo/subcmds/init.py", line 289, in _ConfigureUser
name = self._Prompt('Your Name', mp.UserName)
File "/home/fh/GitHub/android4.4/.repo/repo/project.py", line 650, in UserName
self._LoadUserIdentity()
File "/home/fh/GitHub/android4.4/.repo/repo/project.py", line 663, in _LoadUserIdentity
u = self.bare_git.var('GIT_COMMITTER_IDENT')
File "/home/fh/GitHub/android4.4/.repo/repo/project.py", line 2483, in runner
p.stderr))
error.GitError: manifests var:
*** Please tell me who you are.
Run
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.
fatal: unable to auto-detect email address (got 'fh@pc.(none)')
fh@pc:~/GitHub/android4.4$ repo init -u https://github.com/TOPEET-Develop/android.git -b exynos4412_android4.4.4_master
Traceback (most recent call last):
File "/home/fh/GitHub/android4.4/.repo/repo/main.py", line 500, in <module>
_Main(sys.argv[1:])
File "/home/fh/GitHub/android4.4/.repo/repo/main.py", line 476, in _Main
result = repo._Run(argv) or 0
File "/home/fh/GitHub/android4.4/.repo/repo/main.py", line 155, in _Run
result = cmd.Execute(copts, cargs)
File "/home/fh/GitHub/android4.4/.repo/repo/subcmds/init.py", line 395, in Execute
self._ConfigureUser()
File "/home/fh/GitHub/android4.4/.repo/repo/subcmds/init.py", line 289, in _ConfigureUser
name = self._Prompt('Your Name', mp.UserName)
File "/home/fh/GitHub/android4.4/.repo/repo/project.py", line 650, in UserName
self._LoadUserIdentity()
File "/home/fh/GitHub/android4.4/.repo/repo/project.py", line 663, in _LoadUserIdentity
u = self.bare_git.var('GIT_COMMITTER_IDENT')
File "/home/fh/GitHub/android4.4/.repo/repo/project.py", line 2483, in runner
p.stderr))
error.GitError: manifests var:
*** Please tell me who you are.
Run
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.
fatal: unable to auto-detect email address (got 'fh@pc.(none)')
fh@pc:~/GitHub/android4.4$
|
|
|
|
|
|
|
|
楼主|
发表于 2017-4-16 10:52:30
问题解决:运行错误提示中的代码就可以了。示例:git config --global user.email "随便一个邮箱"
git config --global user.name "随便一个名字" ,然后再次运行repo的命令,提示需要配置当前账户的字体颜色吗,输入y回车就行。接着就是同步源码下载了,repo sync |
|
|
|
|
|
|
|
楼主|
发表于 2017-4-16 11:11:12
问题又出现了,执行repo sync 提示找不到清华的源,如下:fh@pc:~/GitHub/android4.4$ repo sync
Fetching project platform/external/libgsm
Fetching project platform/external/embunit
Fetching project platform/hardware/qcom/camera
Fetching project platform/prebuilts/clang/linux-x86/arm/3.3
fatal: unable to connect to aosp.tuna.tsinghua.edu.cn:
aosp.tuna.tsinghua.edu.cn[0: 101.6.6.177]: errno=Connection refused
aosp.tuna.tsinghua.edu.cn[1: 2402:f000:1:416:101:6:6:177]: errno=Network is unreachable
fatal: unable to connect to aosp.tuna.tsinghua.edu.cn:
aosp.tuna.tsinghua.edu.cn[0: 101.6.6.177]: errno=Connection refused
aosp.tuna.tsinghua.edu.cn[1: 2402:f000:1:416:101:6:6:177]: errno=Network is unreachable
fatal: unable to connect to aosp.tuna.tsinghua.edu.cn:
aosp.tuna.tsinghua.edu.cn[0: 101.6.6.177]: errno=Connection refused
aosp.tuna.tsinghua.edu.cn[1: 2402:f000:1:416:101:6:6:177]: errno=Network is unreachable
fatal: unable to connect to aosp.tuna.tsinghua.edu.cn:
aosp.tuna.tsinghua.edu.cn[0: 101.6.6.177]: errno=Connection refused
aosp.tuna.tsinghua.edu.cn[1: 2402:f000:1:416:101:6:6:177]: errno=Network is unreachable
fatal: unable to connect to aosp.tuna.tsinghua.edu.cn:
aosp.tuna.tsinghua.edu.cn[0: 101.6.6.177]: errno=Connection refused
aosp.tuna.tsinghua.edu.cn[1: 2402:f000:1:416:101:6:6:177]: errno=Network is unreachable
fatal: unable to connect to aosp.tuna.tsinghua.edu.cn:
aosp.tuna.tsinghua.edu.cn[0: 101.6.6.177]: errno=Connection refused
aosp.tuna.tsinghua.edu.cn[1: 2402:f000:1:416:101:6:6:177]: errno=Network is unreachable
fatal: unable to connect to aosp.tuna.tsinghua.edu.cn:
aosp.tuna.tsinghua.edu.cn[0: 101.6.6.177]: errno=Connection refused
aosp.tuna.tsinghua.edu.cn[1: 2402:f000:1:416:101:6:6:177]: errno=Network is unreachable
fatal: unable to connect to aosp.tuna.tsinghua.edu.cn:
aosp.tuna.tsinghua.edu.cn[0: 101.6.6.177]: errno=Connection refused
aosp.tuna.tsinghua.edu.cn[1: 2402:f000:1:416:101:6:6:177]: errno=Network is unreachable
error: Cannot fetch platform/external/embunit
Fetching project platform/frameworks/ml
error: Cannot fetch platform/external/libgsm
fatal: unable to connect to aosp.tuna.tsinghua.edu.cn:
aosp.tuna.tsinghua.edu.cn[0: 101.6.6.177]: errno=Connection refused
aosp.tuna.tsinghua.edu.cn[1: 2402:f000:1:416:101:6:6:177]: errno=Network is unreachable
error: Cannot fetch platform/prebuilts/clang/linux-x86/arm/3.3
error: Cannot fetch platform/hardware/qcom/camera
fatal: unable to connect to aosp.tuna.tsinghua.edu.cn:
aosp.tuna.tsinghua.edu.cn[0: 101.6.6.177]: errno=Connection refused
aosp.tuna.tsinghua.edu.cn[1: 2402:f000:1:416:101:6:6:177]: errno=Network is unreachable
error: Cannot fetch platform/frameworks/ml
error: Exited sync due to fetch errors
|
|
|
|
|
|
|
|
楼主|
发表于 2017-4-16 14:43:51
问题出现总的解决吧,在百度、谷歌了之后,突然进到清华大学镜像网站,看到一个提示,就是要把 mainfests下的xml文件里的源改下,因为git协议被终止了。认真读了几遍之后,根据之前错误提示,觉得应该是这问题,所以尝试一把。运行vim .repo/mainfests/defualt.xml,保存后退出,再次执行repo sync。天啊咯,一下子又可以了。太高兴了。。。。不过后悔没有后面加个多线程的参数,,,,这下又不知道要多少个小时。。。
|
|
|
|
|
|
|
登录或注册
扫一扫关注迅为公众号
|