The command '/bin/sh -c apt-get --allow-releaseinfo-change update' returned a non-zero code: 100

The command '/bin/sh -c apt-get --allow-releaseinfo-change update' returned a non-zero code: 100

Reading package lists...
E: Failed to fetch Hash Sum mismatch Hashes of expected file: - Filesize:7906168 [weak] - SHA256:621d5053cc12eafc688e2c6f1ace9e421ad848c571a76d6bf3528183eec186f1 - MD5Sum:bf9ddecd3caeb7cc31bc8ae1800d46ab [weak] Hashes of received file: - SHA256:bbc09053e2024c3e241b789fe55fb39bcf7052a0b267caedde625c029ebd2f57 - MD5Sum:2f340583b6d2be909a6cc8cc6e78cae5 [weak] - Filesize:7906168 [weak] Last modification reported: Sat, 09 Oct 2021 10:19:51 +0000 Release file created at: Sat, 09 Oct 2021 10:43:49 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.
ERROR: Service 'php' failed to build: The command '/bin/sh -c apt-get --allow-releaseinfo-change update' returned a non-zero code: 100

Just ran docker-compose up and it worked on VirtualBox, but on WSL2 it's not working. Not sure why, because it's the same command.

E: Failed to fetch Hash Sum mismatch Hashes of expected file: - SHA256:2f7811c696db52d44a71a0086becf52aa6232cc8bc829d4a661bae85d0522cb1 - MD5Sum:9112bb248bd7b8c440dac418184e4a47 [weak] - Filesize:94728 [weak] Hashes of received file: - SHA256:43e97eab4b12154f116cd79a427bd47ce288eedfd955d09943e597ea5f33c499 - MD5Sum:067943f678b0274d93e142c8de891e1a [weak] - Filesize:94728 [weak] Last modification reported: Sat, 30 Mar 2019 15:57:48 +0000
E: Failed to fetch Bad header line Bad header data [IP: 151.101.138.132 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

I keep getting this and even with --fix-missing it doesn't work. There are always package that have mismatching hashes. I have no idea how this is possible.

RUN apt-get --allow-releaseinfo-change update 

This line doesn't get run correctly every time. Sometimes, it's 1 package, sometimes it's 4 packages, etc.

2 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like