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

Dockerfile for zLinux can "fail to fetch" while building #930

Closed
adamfarley opened this issue Jan 15, 2018 · 3 comments
Closed

Dockerfile for zLinux can "fail to fetch" while building #930

adamfarley opened this issue Jan 15, 2018 · 3 comments

Comments

@adamfarley
Copy link
Contributor

Attempting to build a docker image with the openj9 Dockerfile for jdk9 on zLinux can result in the following error:

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

This results in nothing that can be used.

Attempting a rebuild results in this error:

E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/pool/main/libx/libx11/libx11-6_1.6.3-1ubuntu2_s390x.deb Connection failed
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Adding --fix-missing does indeed appear to prevent the problem. Are there any objections to making this a part of the Dockerfile?

Pull request: #929

@DanHeidinga
Copy link
Member

@adamfarley Why does --fix-missing prevent the problem?

We've previously closed a similar issue as being due to old version of apt / proxies between the client and the apt-server. See #14

@DanHeidinga
Copy link
Member

My reading of the description:

--fix-missing
Ignore missing packages; If packages cannot be retrieved or fail the integrity check after retrieval (corrupted package files), hold back those packages and handle the result. Use of this option together with -f may produce an error in some situations. If a package is selected for installation (particularly if it is mentioned on the command line) and it could not be downloaded then it will be silently held back. Configuration Item: APT::Get::Fix-Missing.

indicates we'd be left with an incomplete docker image.

@adamfarley
Copy link
Contributor Author

I assumed "fix missing" actually "fixed" things. An assumption on my part. RTM :)

Thanks for the quick response. Closing the issue.

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

Successfully merging a pull request may close this issue.

2 participants