Building debian image failed

Hi

I’m trying to create debian rootfs image, and it failed.

I got an Hash Sum mismatch error while building rootfs image.

do you know how to fix this error ?


$ RELEASE=stretch TARGET=desktop ARCH=arm64 ./mk-base-debian.sh
– snip –
Get:645 http://ftp.debian.org/debian stretch/main arm64 usb-modeswitch arm64 2.5.0+repack0-1 [54.2 kB]
Get:646 http://ftp.debian.org/debian stretch/main arm64 user-setup all 1.67 [173 kB]
Fetched 300 MB in 8min 36s (581 kB/s)
E: Failed to fetch http://ftp.debian.org/debian/pool/main/libo/libogg/libogg0_1.3.2-1_arm64.deb Hash Sum mismatch
Hashes of expected file:
- SHA256:b98262c76f2a773abc7f12cb54b7f740ab001ce225dbfd0fd982377460d7262f
- MD5Sum:0b3b1a340d0c0fed42d91d870452081f [weak]
- Filesize:18520 [weak]
Hashes of received file:
- SHA256:2ec94171b2632af2802d6f22b59da3cc0635bda4c506650e5d06bf41b25948e4
- MD5Sum:7be1c271983cd5d435ad736c5767779f [weak]
- Filesize:3897 [weak]
Last modification reported: Sun, 17 Aug 2014 00:12:44 +0000
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
P: Begin unmounting filesystems…
P: Saving caches…
if [ -f binary-tar.tar.gz ]; then
tar -jcf linaro-stretch-alip-date +%Y%m%d-1.config.tar.bz2 auto/ config/ configure;
sudo mv binary.contents linaro-stretch-alip-date +%Y%m%d-1.contents;
sudo mv chroot.packages.live linaro-stretch-alip-date +%Y%m%d-1.packages;
sudo mv binary-tar.tar.gz linaro-stretch-alip-date +%Y%m%d-1.tar.gz;
md5sum linaro-stretch-alip-date +%Y%m%d-1.build-log.txt linaro-stretch-alip-date +%Y%m%d-1.config.tar.bz2 linaro-stretch-alip-date +%Y%m%d-1.contents linaro-stretch-alip-date +%Y%m%d-1.packages linaro-stretch-alip-date +%Y%m%d-1.tar.gz > linaro-stretch-alip-date +%Y%m%d-1.md5sums.txt;
sha1sum linaro-stretch-alip-date +%Y%m%d-1.build-log.txt linaro-stretch-alip-date +%Y%m%d-1.config.tar.bz2 linaro-stretch-alip-date +%Y%m%d-1.contents linaro-stretch-alip-date +%Y%m%d-1.packages linaro-stretch-alip-date +%Y%m%d-1.tar.gz > linaro-stretch-alip-date +%Y%m%d-1.sha1sums.txt;
fi
Failed to run livebuild, please check your network connection.


Hi,

This is mostly like a network issue or the Debian server is happened to updating the packages. You can try again.

Hi jack.

Thank you for your response.

I’ll try this solution.

:grin:

When I built it on another day, the build succeeded.

Thank you.
:grinning: