Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting Hash Sum mismatch while building openj9 image #14

Closed
sabkrish opened this issue Sep 14, 2017 · 5 comments
Closed

Getting Hash Sum mismatch while building openj9 image #14

sabkrish opened this issue Sep 14, 2017 · 5 comments

Comments

@sabkrish
Copy link

I was running "docker build -t openj9 -f Dockerfile ." to build the dockerfile on linux x86-64. I ended up with the below error.

E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial/universe/source/by-hash/SHA256/e201ab73d77c0208d5dcd4844b6215bc5e18b49d9f9b58d0fb627c47c0438ecd Hash Sum mismatch
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial/main/binary-amd64/by-hash/SHA256/8d6ab57abf517d7712e4e4d23d762485af49f8140a83b221ea7282f82a51c795
E: Some index files failed to download. They have been ignored, or old ones used instead.

I already had a ubuntu image installed. Not sure if this was causing any issues. So, i did docker pull of ubuntu image and updated it. But no luck.

I'm not able to understand why is this happening.

Workaround:
Added "rm -rf /var/lib/apt/lists/* && apt-get clean" before apt-get update (based on google search) in the dockerfile and it helped.

sabkrish pushed a commit to sabkrish/openj9 that referenced this issue Sep 15, 2017
apt-get upgrade fails with hash mismatch error on linux x86-64
Root cause yet to be figured out. Adding in the workaround for
the mean time as it might benefit others who might see a similar
issue

Issue: eclipse-openj9#14
Signed-off-by: sabkrish <sabkrish@in.ibm.com>
@mstoodle
Copy link
Contributor

@sabkrish can you provide a few more details about your host environment to see if we can figure out the origin of this issue?

@sabkrish
Copy link
Author

OS: Ubuntu 16.04.2 LTS (GNU/Linux 4.4.0-31-generic x86_64)
It already had a ubuntu 16.04 docker image pulled in 3 months ago.

@DanHeidinga
Copy link
Member

@sabkrish Is there a proxy between you the apt server? Or some form of caching in place for the packages?

Reading https://bugs.launchpad.net/ubuntu/+source/apt/+bug/972077 and related links indicates there was a bug in older version of apt (now fixed) but caching / proxies may be responsible for similar appearing issues.

@sabkrish
Copy link
Author

@DanHeidinga - Dinakar also faced the same issue but the solution which worked for me didn't work for him. For him, when he switched from Wireless network to Wired network, it worked. So, it appears to be some problem with the network cache. I think the solution that worked for me mayn't work for everyone. So, i'm planning to close the PR i had raised with this change.

@pshipton
Copy link
Member

Closing, please re-open if there is still a problem.

hzongaro pushed a commit to hzongaro/openj9 that referenced this issue Mar 26, 2020
…ype-failure-update

Rename UnresolvedValueTypeFailure to UnsupportedValueTypeOperation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants