Fenix build ubuntu出现resolving错误

hi
我在使用fenix为VIM3编译Ubuntu 2004时,出现了一个问题。我最开始时是可以编译出镜像文件的,后来做了一些改动后,再次编译就一直出现“Temporary failure resolving”的错误。我是在docker里编译的,宿主机是Ubuntu 2004LTS,docker的image是使用fenix下的Dockerfile build出来的。我本来以为会是Ubuntu源的问题,尝试着由默认的,换成清华的,换成ustc的,试过3个源,都有这个问题。后来查了一下,觉得可能是DNS的问题。但是我docker 里的Ubuntu是可以通过apt update的。运行时也加了–network=host的选项。

docker run -it --name fenix_1007 -v $(pwd):/home/khadas/fenix \
             -v /etc/localtime:/etc/localtime:ro \
             -v /etc/timezone:/etc/timezone:ro \
             -v $HOME/.ccache:/home/khadas/.ccache --privileged \
             --network=host \
             --device=/dev/loop-control:/dev/loop-control \
             --device=/dev/loop0:/dev/loop0 --cap-add SYS_ADMIN \
             fenix_1007

编译日志如下:


setupcon: We are not on the console, the console is left unconfigured.
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ focal main restricted universe multiverse
#deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ focal main restricted universe multiverse

deb http://mirrors.ustc.edu.cn/ubuntu-ports/ focal-security main restricted universe multiverse
#deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ focal-security main restricted universe multiverse

deb http://mirrors.ustc.edu.cn/ubuntu-ports/ focal-updates main restricted universe multiverse
#deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ focal-updates main restricted universe multiverse

deb http://mirrors.ustc.edu.cn/ubuntu-ports/ focal-backports main restricted universe multiverse
#deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ focal-backports main restricted universe multiverse
OK
Info: Updating package list focal
Err:1 http://mirrors.ustc.edu.cn/ubuntu-ports focal InRelease
  Temporary failure resolving 'mirrors.ustc.edu.cn'
Err:2 http://mirrors.ustc.edu.cn/ubuntu-ports focal-security InRelease
  Temporary failure resolving 'mirrors.ustc.edu.cn'
Err:3 http://mirrors.ustc.edu.cn/ubuntu-ports focal-updates InRelease
  Temporary failure resolving 'mirrors.ustc.edu.cn'
Err:4 http://mirrors.ustc.edu.cn/ubuntu-ports focal-backports InRelease
  Temporary failure resolving 'mirrors.ustc.edu.cn'
Reading package lists... Done
W: Failed to fetch http://mirrors.ustc.edu.cn/ubuntu-ports/dists/focal/InRelease  Temporary failure resolving 'mirrors.ustc.edu.cn'
W: Failed to fetch http://mirrors.ustc.edu.cn/ubuntu-ports/dists/focal-security/InRelease  Temporary failure resolving 'mirrors.ustc.edu.cn'
W: Failed to fetch http://mirrors.ustc.edu.cn/ubuntu-ports/dists/focal-updates/InRelease  Temporary failure resolving 'mirrors.ustc.edu.cn'
W: Failed to fetch http://mirrors.ustc.edu.cn/ubuntu-ports/dists/focal-backports/InRelease  Temporary failure resolving 'mirrors.ustc.edu.cn'
W: Some index files failed to download. They have been ignored, or old ones used instead.
Info: Upgrading base packages
Reading package lists... Done
Building dependency tree... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Info: Installing packages
Reading package lists... Done
Building dependency tree... Done
Note, selecting 'libglu1-mesa' instead of 'libglu1'
dirmngr is already the newest version (2.2.19-3ubuntu2).
...
  zlib1g-dev zstd
0 upgraded, 1249 newly installed, 1 to remove and 0 not upgraded.
Need to get 577 MB of archives.
After this operation, 3010 MB of additional disk space will be used.
Err:1 http://mirrors.ustc.edu.cn/ubuntu-ports focal/main arm64 libedit2 arm64 3.1-20191231-1
  Temporary failure resolving 'mirrors.ustc.edu.cn'
Err:2 http://mirrors.ustc.edu.cn/ubuntu-ports focal/main arm64 chrony arm64 3.5-6ubuntu6
  Temporary failure resolving 'mirrors.ustc.edu.cn'
Err:3 http://mirrors.ustc.edu.cn/ubuntu-ports focal/main arm64 libpython3.8-minimal arm64 3.8.2-1ubuntu1
  Temporary failure resolving 'mirrors.ustc.edu.cn'
Err:4 http://mirrors.ustc.edu.cn/ubuntu-ports focal/main arm64 python3.8-minimal arm64 3.8.2-1ubuntu1
  Temporary failure resolving 'mirrors.ustc.edu.cn'
Err:5 http://mirrors.ustc.edu.cn/ubuntu-ports focal/main arm64 python3-minimal arm64 3.8.2-0ubuntu2
  Temporary failure resolving 'mirrors.ustc.edu.cn'
Err:6 http://mirrors.ustc.edu.cn/ubuntu-ports focal/main arm64 mime-support all 3.64ubuntu1
  Temporary failure resolving 'mirrors.ustc.edu.cn'
Err:7 http://mirrors.ustc.edu.cn/ubuntu-ports focal/main arm64 libmpdec2 arm64 2.4.2-3
  Temporary failure resolving 'mirrors.ustc.edu.cn'
Err:8 http://mirrors.ustc.edu.cn/ubuntu-ports focal/main arm64 libpython3.8-stdlib arm64 3.8.2-1ubuntu1
...
  Temporary failure resolving 'mirrors.ustc.edu.cn'

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Cleanup...
make: *** [Makefile:5: all] Error 100
root@taiho-pc:/home/khadas/fenix# apt update
Hit:1 http://mirrors.ustc.edu.cn/ubuntu focal InRelease
Get:2 http://mirrors.ustc.edu.cn/ubuntu focal-updates InRelease [114 kB]
Get:3 http://mirrors.ustc.edu.cn/ubuntu focal-backports InRelease [101 kB]
Get:4 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Get:5 http://mirrors.ustc.edu.cn/ubuntu focal-updates/main i386 Packages [682 kB]
Get:6 http://security.ubuntu.com/ubuntu focal-security/universe i386 Packages [629 kB]                                                                                                  
Get:7 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [1,135 kB]                                                                                                   
Get:8 http://mirrors.ustc.edu.cn/ubuntu focal-updates/universe amd64 Packages [1,083 kB]                                                                                                
Get:9 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [581 kB]                                                                                               
Get:10 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [796 kB]                                                                                                
Get:11 http://security.ubuntu.com/ubuntu focal-security/main i386 Packages [359 kB]                                                                                                     
Get:12 http://mirrors.ustc.edu.cn/ubuntu focal-updates/restricted amd64 Packages [632 kB]                                                                                               
Get:13 http://mirrors.ustc.edu.cn/ubuntu focal-updates/main amd64 Packages [1,582 kB]                                                                                                   
Get:14 http://mirrors.ustc.edu.cn/ubuntu focal-updates/universe i386 Packages [795 kB]                                                                                                  
Fetched 8,601 kB in 30s (285 kB/s)                                                                                                                                                      
Reading package lists... Done
Building dependency tree       
Reading state information... Done
16 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@taiho-pc:/home/khadas/fenix# 

@ numbqq 不知道您在这块有没有经验,还请帮忙指导一下,谢谢。(日志由于帖子大小缘故,删掉大部分内容)

这个看起来是网络问题。你用原始的代码,不做任何修改,然后用如下命令编译呢?

$ DOWNLOAD_MIRROR=china make

这样会默认使用国内的源。

hi @numbqq ,
感谢您的快速响应,我把DOWNLOAD_MIRROR设置成china以后,出现一些包的校验错误,看起来是packge.mk里的md5值和实际下载到的文件不一致。


Info: Check active build session /home/khadas/fenix/build/build.pid [85588]
Info: Start new build session /home/khadas/fenix/build/build.pid [85588]
Info: Cleanup old build session
Info: Build host: focal target: focal
Info: Running in container: docker
Info: apt-cacher is disabled in containers.
[i] check python -> Python 2.7.18
[i] check python2 -> Python 2.7.18
Info: Git update was disabled by NO_GIT_UPDATE
--2021-10-08 17:17:46--  https://gitee.com/khadas/images_upgrade/repository/archive/df70a352d25388eff7e25e59d0efda80ad26bf2b.tar.gz
Resolving gitee.com (gitee.com)... 180.97.125.228
Connecting to gitee.com (gitee.com)|180.97.125.228|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://gitee.com/khadas/images_upgrade/repository/blazearchive/df70a352d25388eff7e25e59d0efda80ad26bf2b.tar.gz?Expires=1633685866&Signature=TXwyaFDc6kllydlOLZViDu428fOeQja1s%2FfrG4SXWYQ%3D [following]
--2021-10-08 17:17:46--  https://gitee.com/khadas/images_upgrade/repository/blazearchive/df70a352d25388eff7e25e59d0efda80ad26bf2b.tar.gz?Expires=1633685866&Signature=TXwyaFDc6kllydlOLZViDu428fOeQja1s%2FfrG4SXWYQ%3D
Reusing existing connection to gitee.com:443.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-compressed-tar]
Saving to: ‘images_upgrade-df70a352d25388eff7e25e59d0efda80ad26bf2b.tar.gz’

images_upgrade-df70a352d25388eff7e25e59d0efda80ad26bf2b.tar.gz      [  <=>                                                                                                                                                   ] 237.11K  1.05MB/s    in 0.2s    

2021-10-08 17:17:47 (1.05 MB/s) - ‘images_upgrade-df70a352d25388eff7e25e59d0efda80ad26bf2b.tar.gz’ saved [242801]

config/functions/build-package:72 Error: Incorrect checksum calculated on downloaded file: got a5c89b2c8c8e5c1de5cf756abb1bf712d509ec27a48f33d642d3809539626af6, wanted 75c62a5b519ae8bb3e0091a05c1cd98c4815dd1b0dddfa8d7f34093ff1f38355
--2021-10-08 17:17:47--  https://gitee.com/khadas/images_upgrade/repository/archive/df70a352d25388eff7e25e59d0efda80ad26bf2b.tar.gz
Resolving gitee.com (gitee.com)... 180.97.125.228
Connecting to gitee.com (gitee.com)|180.97.125.228|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://gitee.com/khadas/images_upgrade/repository/blazearchive/df70a352d25388eff7e25e59d0efda80ad26bf2b.tar.gz?Expires=1633685867&Signature=%2FkUDgy1K1XHxXnWKDATB85Zh%2B47F2pvMRXirGu9eYt4%3D [following]
--2021-10-08 17:17:47--  https://gitee.com/khadas/images_upgrade/repository/blazearchive/df70a352d25388eff7e25e59d0efda80ad26bf2b.tar.gz?Expires=1633685867&Signature=%2FkUDgy1K1XHxXnWKDATB85Zh%2B47F2pvMRXirGu9eYt4%3D
Reusing existing connection to gitee.com:443.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-compressed-tar]
Saving to: ‘images_upgrade-df70a352d25388eff7e25e59d0efda80ad26bf2b.tar.gz’

images_upgrade-df70a352d25388eff7e25e59d0efda80ad26bf2b.tar.gz      [     <=>                                                                                                                                                ] 237.11K   246KB/s    in 1.0s    

2021-10-08 17:17:48 (246 KB/s) - ‘images_upgrade-df70a352d25388eff7e25e59d0efda80ad26bf2b.tar.gz’ saved [242801]

config/functions/build-package:72 Error: Incorrect checksum calculated on downloaded file: got a5c89b2c8c8e5c1de5cf756abb1bf712d509ec27a48f33d642d3809539626af6, wanted 75c62a5b519ae8bb3e0091a05c1cd98c4815dd1b0dddfa8d7f34093ff1f38355
--2021-10-08 17:17:48--  https://gitee.com/khadas/images_upgrade/repository/archive/df70a352d25388eff7e25e59d0efda80ad26bf2b.tar.gz
Resolving gitee.com (gitee.com)... 180.97.125.228
Connecting to gitee.com (gitee.com)|180.97.125.228|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://gitee.com/khadas/images_upgrade/repository/blazearchive/df70a352d25388eff7e25e59d0efda80ad26bf2b.tar.gz?Expires=1633685869&Signature=BSzaejovO7tL1tS0JuYCL0C2%2FMIHOaGLGZgGHPEPZV8%3D [following]
--2021-10-08 17:17:49--  https://gitee.com/khadas/images_upgrade/repository/blazearchive/df70a352d25388eff7e25e59d0efda80ad26bf2b.tar.gz?Expires=1633685869&Signature=BSzaejovO7tL1tS0JuYCL0C2%2FMIHOaGLGZgGHPEPZV8%3D
Reusing existing connection to gitee.com:443.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-compressed-tar]
Saving to: ‘images_upgrade-df70a352d25388eff7e25e59d0efda80ad26bf2b.tar.gz’

images_upgrade-df70a352d25388eff7e25e59d0efda80ad26bf2b.tar.gz      [   <=>                                                                                                                                                  ] 237.11K   469KB/s    in 0.5s    

2021-10-08 17:17:49 (469 KB/s) - ‘images_upgrade-df70a352d25388eff7e25e59d0efda80ad26bf2b.tar.gz’ saved [242801]

config/functions/build-package:72 Error: Incorrect checksum calculated on downloaded file: got a5c89b2c8c8e5c1de5cf756abb1bf712d509ec27a48f33d642d3809539626af6, wanted 75c62a5b519ae8bb3e0091a05c1cd98c4815dd1b0dddfa8d7f34093ff1f38355
--2021-10-08 17:17:49--  https://gitee.com/khadas/images_upgrade/repository/archive/df70a352d25388eff7e25e59d0efda80ad26bf2b.tar.gz
Resolving gitee.com (gitee.com)... 180.97.125.228
Connecting to gitee.com (gitee.com)|180.97.125.228|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://gitee.com/khadas/images_upgrade/repository/blazearchive/df70a352d25388eff7e25e59d0efda80ad26bf2b.tar.gz?Expires=1633685870&Signature=J6IyLh6pXENop23G%2FEzojoLvypuJIw15BGoVH3ZsiFw%3D [following]
--2021-10-08 17:17:50--  https://gitee.com/khadas/images_upgrade/repository/blazearchive/df70a352d25388eff7e25e59d0efda80ad26bf2b.tar.gz?Expires=1633685870&Signature=J6IyLh6pXENop23G%2FEzojoLvypuJIw15BGoVH3ZsiFw%3D
Reusing existing connection to gitee.com:443.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-compressed-tar]
Saving to: ‘images_upgrade-df70a352d25388eff7e25e59d0efda80ad26bf2b.tar.gz’

images_upgrade-df70a352d25388eff7e25e59d0efda80ad26bf2b.tar.gz      [  <=>                                                                                                                                                   ] 237.11K   635KB/s    in 0.4s    

2021-10-08 17:17:50 (635 KB/s) - ‘images_upgrade-df70a352d25388eff7e25e59d0efda80ad26bf2b.tar.gz’ saved [242801]

config/functions/build-package:72 Error: Incorrect checksum calculated on downloaded file: got a5c89b2c8c8e5c1de5cf756abb1bf712d509ec27a48f33d642d3809539626af6, wanted 75c62a5b519ae8bb3e0091a05c1cd98c4815dd1b0dddfa8d7f34093ff1f38355
--2021-10-08 17:17:50--  https://gitee.com/khadas/images_upgrade/repository/archive/df70a352d25388eff7e25e59d0efda80ad26bf2b.tar.gz
Resolving gitee.com (gitee.com)... 180.97.125.228
Connecting to gitee.com (gitee.com)|180.97.125.228|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://gitee.com/khadas/images_upgrade/repository/blazearchive/df70a352d25388eff7e25e59d0efda80ad26bf2b.tar.gz?Expires=1633685871&Signature=L0tdXN%2BFSF77SzpE6W7mSQebDeC7aAZGn%2FVAy4n%2FSuQ%3D [following]
--2021-10-08 17:17:51--  https://gitee.com/khadas/images_upgrade/repository/blazearchive/df70a352d25388eff7e25e59d0efda80ad26bf2b.tar.gz?Expires=1633685871&Signature=L0tdXN%2BFSF77SzpE6W7mSQebDeC7aAZGn%2FVAy4n%2FSuQ%3D
Reusing existing connection to gitee.com:443.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-compressed-tar]
Saving to: ‘images_upgrade-df70a352d25388eff7e25e59d0efda80ad26bf2b.tar.gz’

images_upgrade-df70a352d25388eff7e25e59d0efda80ad26bf2b.tar.gz      [  <=>                                                                                                                                                   ] 237.11K   694KB/s    in 0.3s    

2021-10-08 17:17:51 (694 KB/s) - ‘images_upgrade-df70a352d25388eff7e25e59d0efda80ad26bf2b.tar.gz’ saved [242801]

config/functions/build-package:72 Error: Incorrect checksum calculated on downloaded file: got a5c89b2c8c8e5c1de5cf756abb1bf712d509ec27a48f33d642d3809539626af6, wanted 75c62a5b519ae8bb3e0091a05c1cd98c4815dd1b0dddfa8d7f34093ff1f38355
--2021-10-08 17:17:51--  https://gitee.com/khadas/images_upgrade/repository/archive/df70a352d25388eff7e25e59d0efda80ad26bf2b.tar.gz
Resolving gitee.com (gitee.com)... 180.97.125.228
Connecting to gitee.com (gitee.com)|180.97.125.228|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://gitee.com/khadas/images_upgrade/repository/blazearchive/df70a352d25388eff7e25e59d0efda80ad26bf2b.tar.gz?Expires=1633685871&Signature=L0tdXN%2BFSF77SzpE6W7mSQebDeC7aAZGn%2FVAy4n%2FSuQ%3D [following]
--2021-10-08 17:17:51--  https://gitee.com/khadas/images_upgrade/repository/blazearchive/df70a352d25388eff7e25e59d0efda80ad26bf2b.tar.gz?Expires=1633685871&Signature=L0tdXN%2BFSF77SzpE6W7mSQebDeC7aAZGn%2FVAy4n%2FSuQ%3D
Reusing existing connection to gitee.com:443.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-compressed-tar]
Saving to: ‘images_upgrade-df70a352d25388eff7e25e59d0efda80ad26bf2b.tar.gz’

images_upgrade-df70a352d25388eff7e25e59d0efda80ad26bf2b.tar.gz      [  <=>                                                                                                                                                   ] 237.11K   910KB/s    in 0.3s    

2021-10-08 17:17:52 (910 KB/s) - ‘images_upgrade-df70a352d25388eff7e25e59d0efda80ad26bf2b.tar.gz’ saved [242801]

config/functions/build-package:72 Error: Incorrect checksum calculated on downloaded file: got a5c89b2c8c8e5c1de5cf756abb1bf712d509ec27a48f33d642d3809539626af6, wanted 75c62a5b519ae8bb3e0091a05c1cd98c4815dd1b0dddfa8d7f34093ff1f38355
--2021-10-08 17:17:52--  https://gitee.com/khadas/images_upgrade/repository/archive/df70a352d25388eff7e25e59d0efda80ad26bf2b.tar.gz
Resolving gitee.com (gitee.com)... 180.97.125.228
Connecting to gitee.com (gitee.com)|180.97.125.228|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://gitee.com/khadas/images_upgrade/repository/blazearchive/df70a352d25388eff7e25e59d0efda80ad26bf2b.tar.gz?Expires=1633685872&Signature=u1hOWZtOrXQog8BKa40hvAlvp1u%2BSctYbq0MZROeXlM%3D [following]
--2021-10-08 17:17:52--  https://gitee.com/khadas/images_upgrade/repository/blazearchive/df70a352d25388eff7e25e59d0efda80ad26bf2b.tar.gz?Expires=1633685872&Signature=u1hOWZtOrXQog8BKa40hvAlvp1u%2BSctYbq0MZROeXlM%3D
Reusing existing connection to gitee.com:443.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-compressed-tar]
Saving to: ‘images_upgrade-df70a352d25388eff7e25e59d0efda80ad26bf2b.tar.gz’

images_upgrade-df70a352d25388eff7e25e59d0efda80ad26bf2b.tar.gz      [  <=>                                                                                                                                                   ] 237.11K   723KB/s    in 0.3s    

2021-10-08 17:17:53 (723 KB/s) - ‘images_upgrade-df70a352d25388eff7e25e59d0efda80ad26bf2b.tar.gz’ saved [242801]

config/functions/build-package:72 Error: Incorrect checksum calculated on downloaded file: got a5c89b2c8c8e5c1de5cf756abb1bf712d509ec27a48f33d642d3809539626af6, wanted 75c62a5b519ae8bb3e0091a05c1cd98c4815dd1b0dddfa8d7f34093ff1f38355
--2021-10-08 17:17:53--  https://gitee.com/khadas/images_upgrade/repository/archive/df70a352d25388eff7e25e59d0efda80ad26bf2b.tar.gz
Resolving gitee.com (gitee.com)... 180.97.125.228
Connecting to gitee.com (gitee.com)|180.97.125.228|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://gitee.com/khadas/images_upgrade/repository/blazearchive/df70a352d25388eff7e25e59d0efda80ad26bf2b.tar.gz?Expires=1633685873&Signature=eeVkVLBmgHr3%2Fo%2FFXfvfboy72uMJu9YiIqYQETylKfI%3D [following]
--2021-10-08 17:17:53--  https://gitee.com/khadas/images_upgrade/repository/blazearchive/df70a352d25388eff7e25e59d0efda80ad26bf2b.tar.gz?Expires=1633685873&Signature=eeVkVLBmgHr3%2Fo%2FFXfvfboy72uMJu9YiIqYQETylKfI%3D
Reusing existing connection to gitee.com:443.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-compressed-tar]
Saving to: ‘images_upgrade-df70a352d25388eff7e25e59d0efda80ad26bf2b.tar.gz’

images_upgrade-df70a352d25388eff7e25e59d0efda80ad26bf2b.tar.gz      [ <=>                                                                                                                                                    ] 237.11K  1.22MB/s    in 0.2s    

2021-10-08 17:17:53 (1.22 MB/s) - ‘images_upgrade-df70a352d25388eff7e25e59d0efda80ad26bf2b.tar.gz’ saved [242801]

config/functions/build-package:72 Error: Incorrect checksum calculated on downloaded file: got a5c89b2c8c8e5c1de5cf756abb1bf712d509ec27a48f33d642d3809539626af6, wanted 75c62a5b519ae8bb3e0091a05c1cd98c4815dd1b0dddfa8d7f34093ff1f38355
--2021-10-08 17:17:53--  https://gitee.com/khadas/images_upgrade/repository/archive/df70a352d25388eff7e25e59d0efda80ad26bf2b.tar.gz
Resolving gitee.com (gitee.com)... 180.97.125.228
Connecting to gitee.com (gitee.com)|180.97.125.228|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://gitee.com/khadas/images_upgrade/repository/blazearchive/df70a352d25388eff7e25e59d0efda80ad26bf2b.tar.gz?Expires=1633685874&Signature=Qw38%2BSuhqPquNug7HR%2BmDBmdhnNjBNy9SRfrUG9m2o8%3D [following]
--2021-10-08 17:17:54--  https://gitee.com/khadas/images_upgrade/repository/blazearchive/df70a352d25388eff7e25e59d0efda80ad26bf2b.tar.gz?Expires=1633685874&Signature=Qw38%2BSuhqPquNug7HR%2BmDBmdhnNjBNy9SRfrUG9m2o8%3D
Reusing existing connection to gitee.com:443.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-compressed-tar]
Saving to: ‘images_upgrade-df70a352d25388eff7e25e59d0efda80ad26bf2b.tar.gz’

images_upgrade-df70a352d25388eff7e25e59d0efda80ad26bf2b.tar.gz      [   <=>                                                                                                                                                  ] 237.11K   422KB/s    in 0.6s    

2021-10-08 17:17:55 (422 KB/s) - ‘images_upgrade-df70a352d25388eff7e25e59d0efda80ad26bf2b.tar.gz’ saved [242801]

config/functions/build-package:72 Error: Incorrect checksum calculated on downloaded file: got a5c89b2c8c8e5c1de5cf756abb1bf712d509ec27a48f33d642d3809539626af6, wanted 75c62a5b519ae8bb3e0091a05c1cd98c4815dd1b0dddfa8d7f34093ff1f38355
--2021-10-08 17:17:55--  https://gitee.com/khadas/images_upgrade/repository/archive/df70a352d25388eff7e25e59d0efda80ad26bf2b.tar.gz
Resolving gitee.com (gitee.com)... 180.97.125.228
Connecting to gitee.com (gitee.com)|180.97.125.228|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://gitee.com/khadas/images_upgrade/repository/blazearchive/df70a352d25388eff7e25e59d0efda80ad26bf2b.tar.gz?Expires=1633685875&Signature=PuYe3ZnroKSWkgmt6opPlavRD9hyaAN4QEd97UWzHPs%3D [following]
--2021-10-08 17:17:55--  https://gitee.com/khadas/images_upgrade/repository/blazearchive/df70a352d25388eff7e25e59d0efda80ad26bf2b.tar.gz?Expires=1633685875&Signature=PuYe3ZnroKSWkgmt6opPlavRD9hyaAN4QEd97UWzHPs%3D
Reusing existing connection to gitee.com:443.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-compressed-tar]
Saving to: ‘images_upgrade-df70a352d25388eff7e25e59d0efda80ad26bf2b.tar.gz’

images_upgrade-df70a352d25388eff7e25e59d0efda80ad26bf2b.tar.gz      [ <=>                                                                                                                                                    ] 237.11K  1.54MB/s    in 0.2s    

2021-10-08 17:17:55 (1.54 MB/s) - ‘images_upgrade-df70a352d25388eff7e25e59d0efda80ad26bf2b.tar.gz’ saved [242801]

config/functions/build-package:72 Error: Incorrect checksum calculated on downloaded file: got a5c89b2c8c8e5c1de5cf756abb1bf712d509ec27a48f33d642d3809539626af6, wanted 75c62a5b519ae8bb3e0091a05c1cd98c4815dd1b0dddfa8d7f34093ff1f38355
config/functions/build-package:78 Error: Cant't get images_upgrade sources : https://gitee.com/khadas/images_upgrade/repository/archive/df70a352d25388eff7e25e59d0efda80ad26bf2b.tar.gz
 Try later !!
make: *** [Makefile:5: all] Error 25

@hxiaoqiang 更新了下,你再试试看。

hi @numbqq
打了您在github上的补丁以后,images_upgrade编译过了。现在npu_aml包出现校验问题
打上补丁后解决。后面有好几个类似的包出现问题,我这边一并把补丁放上来。这些包校验都是基于环境变量 DOWNLOAD_MIRROR=china出现的。

--- a/packages/npu_aml/package.mk
+++ b/packages/npu_aml/package.mk
@@ -9,7 +9,7 @@ PKG_URL="$PKG_SITE/archive/$PKG_VERSION.tar.gz"
 PKG_SITE="$GITEE_URL/numbqq/npu_aml"
 PKG_URL="$PKG_SITE/repository/archive/$PKG_VERSION.tar.gz"
 PKG_SOURCE_DIR="$PKG_NAME"
-PKG_SHA256="b3e0247febb1ca751b769c1580e943c2ee469e70f5d99ffe6c147893d49344ff"
+PKG_SHA256="27f30e097390b3fa0f671273a7e8b8933fcac057e371f91df4e94e38ae229cda"
 }
 PKG_ARCH="arm aarch64"
 PKG_LICENSE="GPL

npu_aml编译后,tengine_libs_deb包出现校验问题,打上下面补丁,可解决tengine_libs_deb校验问题:

--- a/packages/tengine_libs_deb/package.mk
+++ b/packages/tengine_libs_deb/package.mk
@@ -9,7 +9,7 @@ PKG_URL="$PKG_SITE/archive/$PKG_VERSION.tar.gz"
 PKG_SITE="$GITEE_URL/numbqq/${PKG_NAME}"
 PKG_URL="$PKG_SITE/repository/archive/$PKG_VERSION.tar.gz"
 PKG_SOURCE_DIR="$PKG_NAME"
-PKG_SHA256="5ec2a85b3e57e3c134da23b48618806baf4f53e5439a98e9a0bf64e1487bc354"
+PKG_SHA256="7964fe0145c00719a0c80501ba84b145ee2fb7e1c41190f0a2752609ddb54483"
 }
 PKG_ARCH="aarch64"
 PKG_LICENSE="GPL"

后面又遇到了kodi_aml包同样的校验问题:
类似的打补丁:

--- a/packages/kodi_aml/package.mk
+++ b/packages/kodi_aml/package.mk
@@ -9,7 +9,7 @@ PKG_URL="$PKG_SITE/archive/$PKG_VERSION.tar.gz"
 PKG_SITE="$GITEE_URL/numbqq/kodi_aml"
 PKG_URL="$PKG_SITE/repository/archive/$PKG_VERSION.tar.gz"
 PKG_SOURCE_DIR="$PKG_NAME"
-PKG_SHA256="17088f1c12301f009b7dc5f52d5db1860a9cd2d2c57f720a505b3f55dc8675a7"
+PKG_SHA256="26eae3203445419a68335af5048e99fe460fd97604d3c5440e0f17554f2f47b4"
 }
 PKG_ARCH="arm aarch64"
 PKG_LICENSE="GPL"

再次make,出现libplayer_aml同样的问题,补丁如下:

--- a/packages/libplayer_aml/package.mk
+++ b/packages/libplayer_aml/package.mk
@@ -9,7 +9,7 @@ PKG_URL="$PKG_SITE/archive/$PKG_VERSION.tar.gz"
 PKG_SITE="$GITEE_URL/numbqq/libplayer_aml"
 PKG_URL="$PKG_SITE/repository/archive/$PKG_VERSION.tar.gz"
 PKG_SOURCE_DIR="$PKG_NAME"
-PKG_SHA256="455ba1dda7ae04da44f87d5e07f7200b5ec45f59a16acb6eea6a29e1c3b316fc"
+PKG_SHA256="ae8ec4adf73be2f18d280ac0e868b7b315cafcd5140c40492485009ee4a88f25"
 }
 PKG_ARCH="arm aarch64"
 PKG_LICENSE="GPL"

后面又遇到amremote的同样校验错误,补丁如下:

--- a/packages/amremote/package.mk
+++ b/packages/amremote/package.mk
@@ -9,7 +9,7 @@ PKG_URL="$PKG_SITE/archive/$PKG_VERSION.tar.gz"
 PKG_SITE="$GITEE_URL/numbqq/amremote"
 PKG_URL="$PKG_SITE/repository/archive/$PKG_VERSION.tar.gz"
 PKG_SOURCE_DIR="$PKG_NAME"
-PKG_SHA256="3b41f2fa3ef0295305a3f8d5c230b4fd0b5012ca75c973f2c06ae08469322132"
+PKG_SHA256="4faf7fb7ccabc2e31e1e248d4899e227006f7b683f5654ce51f3797121f39686"
 }
 PKG_ARCH="arm aarch64"
 PKG_LICENSE="GPL"

gstreamer_aml包校验错误补丁:

--- a/packages/gstreamer_aml/package.mk
+++ b/packages/gstreamer_aml/package.mk
@@ -9,7 +9,7 @@ PKG_URL="$PKG_SITE/archive/$PKG_VERSION.tar.gz"
 PKG_SITE="$GITEE_URL/numbqq/gstreamer_aml"
 PKG_URL="$PKG_SITE/repository/archive/$PKG_VERSION.tar.gz"
 PKG_SOURCE_DIR="$PKG_NAME"
-PKG_SHA256="5b8de91c91fa6fb84f512e3dcde779dfab2d6b34ea80b56e734d56b6c6212357"
+PKG_SHA256="09268d89e30f0d24d6ab8efe773778f5fa35151666a60397825244f0b31a2c93"
 }
 PKG_ARCH="arm aarch64"
 PKG_LICENSE="GPL"

edid-decode-deb包校验错误补丁:

--- a/packages/edid-decode-deb/package.mk
+++ b/packages/edid-decode-deb/package.mk
@@ -9,7 +9,7 @@ PKG_URL="$PKG_SITE/archive/$PKG_VERSION.tar.gz"
 PKG_SITE="$GITEE_URL/numbqq/edid-decode-deb"
 PKG_URL="$PKG_SITE/repository/archive/$PKG_VERSION.tar.gz"
 PKG_SOURCE_DIR="$PKG_NAME"
-PKG_SHA256="512485ac62795d489388b2426e1ae225e72f6ece9070c8eddbd9adcf28c64e83"
+PKG_SHA256="709efd8944e7f7d3315489756a1d9fde4860e1ad564cb9944f2781376cf96eee"
 }
 PKG_ARCH="arm aarch64"
 PKG_LICENSE="GPL"

mali_examples_aml包校验修复补丁:

--- a/packages/mali_examples_aml/package.mk
+++ b/packages/mali_examples_aml/package.mk
@@ -9,7 +9,7 @@ PKG_URL="$PKG_SITE/archive/$PKG_VERSION.tar.gz"
 PKG_SITE="$GITEE_URL/numbqq/mali_examples_aml"
 PKG_URL="$PKG_SITE/repository/archive/$PKG_VERSION.tar.gz"
 PKG_SOURCE_DIR="$PKG_NAME"
-PKG_SHA256="f9bfc4f0df939cf4ddae4fa46ed317463692e6a1d716c189781362765277cb7b"
+PKG_SHA256="9ef7ccf385deaac966adb43a0cbc4dc5c62728603c2c62403f4e35abd78661e2"
 }
 PKG_ARCH="arm aarch64"
 PKG_LICENSE="GPL"

libcec_debs包校验修复补丁:

--- a/packages/libcec_debs/package.mk
+++ b/packages/libcec_debs/package.mk
@@ -9,7 +9,7 @@ PKG_URL="$PKG_SITE/archive/$PKG_VERSION.tar.gz"
 PKG_SITE="$GITEE_URL/numbqq/libcec_debs"
 PKG_URL="$PKG_SITE/repository/archive/$PKG_VERSION.tar.gz"
 PKG_SOURCE_DIR="$PKG_NAME"
-PKG_SHA256="cb853dcf9f6c5b778e984ff55227edfb7a324762d8000d2f254ff96a0145b715"
+PKG_SHA256="1a6312e0384442ebe23bd9298aa7ca9f2b5c1c6dddf0bfde1a8ee7c0ebeb3cc9"
 }
 PKG_ARCH="arm64 armhf"
 PKG_LICENSE="GPL

encoder_libs_deb_aml包校验修复补丁:

--- a/packages/encoder_libs_deb_aml/package.mk
+++ b/packages/encoder_libs_deb_aml/package.mk
@@ -9,7 +9,7 @@ PKG_URL="$PKG_SITE/archive/$PKG_VERSION.tar.gz"
 PKG_SITE="$GITEE_URL/numbqq/${PKG_NAME}"
 PKG_URL="$PKG_SITE/repository/archive/$PKG_VERSION.tar.gz"
 PKG_SOURCE_DIR="$PKG_NAME"
-PKG_SHA256="8090b4d1d59571de1cc9e4419bd2575a74747668d93cd38ca32e87531559ddc6"
+PKG_SHA256="a9286bcd957e1e4bbd14f146c1afa36d176ff9d68644b9679786c2f8670e9b8b"
 }
 PKG_ARCH="arm64"
 PKG_LICENSE="GPL"

编译进行时,还是报错:

Info: Configuring locales en_US.UTF-8
Generating locales (this might take a while)...
  en_US.UTF-8... done
Generation complete.
setupcon: We are not on the console, the console is left unconfigured.
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ focal main restricted universe multiverse
#deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ focal main restricted universe multiverse

deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ focal-security main restricted universe multiverse
#deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ focal-security main restricted universe multiverse

deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ focal-updates main restricted universe multiverse
#deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ focal-updates main restricted universe multiverse

deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ focal-backports main restricted universe multiverse
#deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ focal-backports main restricted universe multiverse
OK
Info: Updating package list focal
Err:1 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal InRelease
  Temporary failure resolving 'mirrors.tuna.tsinghua.edu.cn'
Err:2 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-security InRelease
  Temporary failure resolving 'mirrors.tuna.tsinghua.edu.cn'
Err:3 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates InRelease
  Temporary failure resolving 'mirrors.tuna.tsinghua.edu.cn'
Err:4 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-backports InRelease
  Temporary failure resolving 'mirrors.tuna.tsinghua.edu.cn'
Reading package lists... Done                  
W: Failed to fetch http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/dists/focal/InRelease  Temporary failure resolving 'mirrors.tuna.tsinghua.edu.cn'
W: Failed to fetch http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/dists/focal-security/InRelease  Temporary failure resolving 'mirrors.tuna.tsinghua.edu.cn'
W: Failed to fetch http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/dists/focal-updates/InRelease  Temporary failure resolving 'mirrors.tuna.tsinghua.edu.cn'
W: Failed to fetch http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/dists/focal-backports/InRelease  Temporary failure resolving 'mirrors.tuna.tsinghua.edu.cn'
W: Some index files failed to download. They have been ignored, or old ones used instead.
Info: Upgrading base packages

  zenity-common zip zlib1g-dev zstd
0 upgraded, 1249 newly installed, 1 to remove and 0 not upgraded.
Need to get 577 MB of archives.
After this operation, 3010 MB of additional disk space will be used.
Err:1 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main arm64 libedit2 arm64 3.1-20191231-1
  Temporary failure resolving 'mirrors.tuna.tsinghua.edu.cn'
Err:2 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main arm64 chrony arm64 3.5-6ubuntu6
  Temporary failure resolving 'mirrors.tuna.tsinghua.edu.cn'
Err:3 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main arm64 libpython3.8-minimal arm64 3.8.2-1ubuntu1
  Temporary failure resolving 'mirrors.tuna.tsinghua.edu.cn'
Err:4 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main arm64 python3.8-minimal arm64 3.8.2-1ubuntu1
  Temporary failure resolving 'mirrors.tuna.tsinghua.edu.cn'
Err:5 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main arm64 python3-minimal arm64 3.8.2-0ubuntu2
  Temporary failure resolving 'mirrors.tuna.tsinghua.edu.cn'
Err:6 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main arm64 mime-support all 3.64ubuntu1
......
  Temporary failure resolving 'mirrors.tuna.tsinghua.edu.cn'
Err:1248 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/universe arm64 vlan all 2.0.4ubuntu1
  Temporary failure resolving 'mirrors.tuna.tsinghua.edu.cn'
Err:1249 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/universe arm64 watchdog arm64 5.15-2
  Temporary failure resolving 'mirrors.tuna.tsinghua.edu.cn'
...
E: Failed to fetch http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/pool/universe/v/vlan/vlan_2.0.4ubuntu1_all.deb  Temporary failure resolving 'mirrors.tuna.tsinghua.edu.cn'
E: Failed to fetch http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/pool/universe/w/watchdog/watchdog_5.15-2_arm64.deb  Temporary failure resolving 'mirrors.tuna.tsinghua.edu.cn'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Cleanup...
make: *** [Makefile:5: all] Error 100

最后遇到的现象跟换ustc源错误一致。

hi @numbqq
我在物理机上编译出了镜像。物理机没有这个问题,docker下编译有这个问题。