goenjoy
October 24, 2023, 10:00am
19
@Zoe-man Execute the ping github.com
command to see if it can ping. If even this website cannot ping, then there is no solution.
$ ping github.com
PING github.com (20.205.243.166) 56(84) bytes of data.
64 bytes from 20.205.243.166 (20.205.243.166): icmp_seq=1 ttl=112 time=44.1 ms
64 bytes from 20.205.243.166 (20.205.243.166): icmp_seq=2 ttl=112 time=42.2 ms
64 bytes from 20.205.243.166 (20.205.243.166): icmp_seq=3 ttl=112 time=41.9 ms
64 bytes from 20.205.243.166 (20.205.243.166): icmp_seq=4 ttl=112 time=42.1 ms
64 bytes from 20.205.243.166 (20.205.243.166): icmp_seq=5 ttl=112 time=42.5 ms
Zoe-man
October 25, 2023, 12:56am
20
@goenjoy Yes,I can ping github.com.But repo still fail.Of course,default.xml already change to tsinghua website in manifest directory.
goenjoy
October 25, 2023, 1:33am
21
@Zoe-man You can actually find a solution to this mistake online.
git config --global --unset https.https://github.com.proxy
git config --global --unset http.https://github.com.proxy
Zoe-man
October 25, 2023, 1:55am
22
@goenjoy There is another error occur.
Zoe-man
October 25, 2023, 6:10am
23
@goenjoy If there any Baidu Netdisk link give to us?
goenjoy
October 25, 2023, 10:05am
24
@Zoe-man 参考 a2)–repo版本问题
来解决,另外千万不要随意使用sudo
。
通过查看论坛提问下载代码报错的帖子,总结如下几类:
a 类 :
a1)–权限问题
File “/snap/git-repo/18/usr/lib/python2.7/multiprocessing/synchronize.py”, line 75, in init
sl = self._semlock = _multiprocessing.SemLock(kind, value, maxvalue)
OSError: [Errno 13] Permission denied
a2)–repo版本问题
Traceback (most recent call last):
File “/home/zhang/workspace/khads/aosp/.repo/repo/main.py”, line 628, in
_Main(sys.argv[1:])
File “/home/zhang/workspace/khads/aosp/.repo/repo/main.py”, line 602, in _Main
result = run()
File “/home/zhang/wo…
Zoe-man
October 26, 2023, 2:37am
25
@goenjoy 已经按照FAQ里的方法处理了,但是出现了C类问题,按照C类的处理方法,就卡着不动了。
Zoe-man
October 26, 2023, 2:56am
27
@goenjoy 目前看一直是frameworks/base这个目录一直link不上,不知道什么原因,已经try了5次了。
goenjoy
October 26, 2023, 3:52am
28
@Zoe-man 执行下面命令并贴出看看:
.repo/repo/repo sync --force-sync -j4 device/khadas/common
.repo/repo/repo sync --force-sync -j4 frameworks/base
Zoe-man
October 26, 2023, 6:15am
29
@goenjoy sync device/khadas/common成功的,但是sync framework/base一直卡着不动,具体如下所示:
goenjoy
October 26, 2023, 8:43am
30
@Zoe-man 估计你网络不好,慢慢等吧。
另外之前有跟你说过千万不要加sudo。你这份代码算是废了。
Zoe-man
October 26, 2023, 9:50am
31
但是不加权限的话又会有别的问题,所以我才加的权限。
Zoe-man
October 30, 2023, 3:01am
32
@goenjoy 我重头来了一遍,没有用sudo,并且换了家里的WiFi网络,下了3天两夜还没下完,最后报错是空间不足没法下载,我的硬盘是500G的,才装的系统,没有任何别的东西放电脑上,这种情况是不是要给我一个百度网盘的链接,我直接从百度网盘下载试试看。
goenjoy
October 30, 2023, 7:37am
33
@Zoe-man 抱歉,我们没有用百度网盘这种方式。项目多,代码是不断更新且是用repo管理代码。
Zoe-man
October 30, 2023, 8:55am
36
@goenjoy 是的,我也很奇怪,我500G的硬盘竟然还空间不足,这是什么梗,以前的Android代码都不到100G,现在是怎么回事?
Zoe-man
October 30, 2023, 9:35am
37
@goenjoy 现在我们公司服务器没有权限访问你们的网址,我只能用我自己的电脑download代码,现在就报空间不足,这个我没办法,是不是你们百度网盘里的repo包含了太多用不到的东西,所以才导致我空间不足,可以通过修改什么地方来解决这个问题吗?
goenjoy
October 31, 2023, 1:03am
38
@Zoe-man repo下载会包含所有项目。故会很大。这个目前解决不了。但肯定不会超过500G。估计在200G左右吧。你看看电脑有哪些可以删除的。