最近真的是频繁的遇到 apt-get update && apt-get install 无法使用的问题,总是提示Hash sum mismatch,换国内源问题依旧,据说是http劫持,但是使用国内的https源也有其他问题。
目前采用的方法就是V连P接N,可以完美解决,但是也有问题,现在需要构建arm版本镜像,在arm主机上没法使用。
虽然docker可以交叉构建arm版本镜像,不过在x86上交叉构建,而且是在容器里面,速度真的是慢,x86架构的target构建1个小时,交叉构建arm的需要一天一夜。简直是噩梦。虽然arm主机性能拉胯,但是在arm机器上构建,时间也最多就翻倍,没有陷入地狱模式。
目前能想到的方案就是,在x86主机上,挂代理,把需要的依赖装好,然后构建一个基础镜像,然后把无网络要求的编译任务放到arm机器上执行,不过有些开源库提供的编译脚本也是需要网络的。。。简直了。这种,只能无解了。
错误祭天:
Get:5 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [442 kB]
Fetched 1373 kB in 27min 9s (843 B/s)
Reading package lists...
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-updates/InRelease Connection failed [IP: 91.189.88.142 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-backports/universe/binary-amd64/by-hash/SHA256/f3a8d2125490369cdb58d97a2d1c1cda054c40d19542625d8a3b6e0dbda5e93e Hash Sum mismatch
Hashes of expected file:
- Filesize:4277 [weak]
- SHA256:f3a8d2125490369cdb58d97a2d1c1cda054c40d19542625d8a3b6e0dbda5e93e
- SHA1:784cd631a8659a93c288a29675d7cab487dd068c [weak]
- MD5Sum:b4fd83770900b1ed66b987cdc9e29f53 [weak]
Hashes of received file:
- SHA256:e3cf707e1a2281a21ea1858d48a04f6e2a84ecfd6621e0f93db30befec82dff0
- SHA1:608fbf635a43719ab54d7b27420bc23c6e20cd4e [weak]
- MD5Sum:4c76c1c5b24996664c4b5542dfe6e9c4 [weak]
- Filesize:4277 [weak]
Last modification reported: Wed, 30 Sep 2020 00:23:12 +0000
Release file created at: Thu, 05 Nov 2020 21:57:11 +0000
W: Some index files failed to download. They have been ignored, or old ones used instead.
网友评论