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

Java feature failed to install #1308

Open
antspy opened this issue Mar 24, 2025 · 5 comments
Open

Java feature failed to install #1308

antspy opened this issue Mar 24, 2025 · 5 comments
Assignees

Comments

@antspy
Copy link

antspy commented Mar 24, 2025

Hi,

I have been using ghcr.io/devcontainers/features/java for a many months now, with no issues. All of a sudden, I get this error when rebuilding my devcontainer:

...
3.785 Enjoy!!!
3.797 Updating /etc/bash.bashrc and /etc/zsh/zshrc...
5.080 Version latest not found. Available versions:
5.080 
5.081 ERROR: Feature "Java (via SDKMAN!)" (ghcr.io/devcontainers/features/java) failed to install! Look at the documentation at https://github.com/devcontainers/features/tree/main/src/java for help troubleshooting this error.
------
ERROR: failed to solve: process "/bin/sh -c cp -ar /tmp/build-features-src/java_3 /tmp/dev-container-features  && chmod -R 0755 /tmp/dev-container-features/java_3  && cd /tmp/dev-container-features/java_3  && chmod +x ./devcontainer-features-install.sh  && ./devcontainer-features-install.sh  && rm -rf /tmp/dev-container-features/java_3" did not complete successfully: exit code: 1

Is this a known problem? If not, how am I supposed to debug this further?
Thank you! :)

@jing-1thing
Copy link

I am having the same issue, specifying the "version" field in the devcontainer.json config can be a workaround.

E.g.

"ghcr.io/devcontainers/features/java:1": {
    "version": "17"
}

@Coinsintegrity
Copy link

**_https://github.com/devcontainers/features/issues/1308#issue-2942358338[/ghcr.io/

Image

devcontainers/features/java:1](url)_**

@Coinsintegrity
Copy link

@Mathiyarasy
Copy link
Contributor

Thank you for reporting the issue. We are looking into it.

@ontoneio
Copy link

I am also having issues with another package. docker-in-docker. But prior to that I was having issues with the apt-packages feature, which I resolved with the rocker-org alternative. They seem to surface a similar error though.

0.401 Running apt-get update...
12.90 Ign:1 http://archive.ubuntu.com/ubuntu noble InRelease
12.90 Ign:2 http://security.ubuntu.com/ubuntu noble-security InRelease
25.37 Ign:3 http://archive.ubuntu.com/ubuntu noble-updates InRelease
25.37 Ign:2 http://security.ubuntu.com/ubuntu noble-security InRelease
37.85 Ign:4 http://archive.ubuntu.com/ubuntu noble-backports InRelease
37.85 Ign:2 http://security.ubuntu.com/ubuntu noble-security InRelease
50.32 Ign:1 http://archive.ubuntu.com/ubuntu noble InRelease
53.44 Err:2 http://security.ubuntu.com/ubuntu noble-security InRelease
53.44   Temporary failure resolving 'security.ubuntu.com'
62.80 Ign:3 http://archive.ubuntu.com/ubuntu noble-updates InRelease
75.27 Ign:4 http://archive.ubuntu.com/ubuntu noble-backports InRelease
87.75 Ign:1 http://archive.ubuntu.com/ubuntu noble InRelease
100.2 Ign:3 http://archive.ubuntu.com/ubuntu noble-updates InRelease
112.7 Ign:4 http://archive.ubuntu.com/ubuntu noble-backports InRelease
125.2 Err:1 http://archive.ubuntu.com/ubuntu noble InRelease
125.2   Temporary failure resolving 'archive.ubuntu.com'
137.7 Err:3 http://archive.ubuntu.com/ubuntu noble-updates InRelease
137.7   Temporary failure resolving 'archive.ubuntu.com'
150.1 Err:4 http://archive.ubuntu.com/ubuntu noble-backports InRelease
150.1   Temporary failure resolving 'archive.ubuntu.com'
150.1 Reading package lists...
150.1 W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/noble/InRelease  Temporary failure resolving 'archive.ubuntu.com'
150.1 W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/noble-updates/InRelease  Temporary failure resolving 'archive.ubuntu.com'
150.1 W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/noble-backports/InRelease  Temporary failure resolving 'archive.ubuntu.com'
150.1 W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/noble-security/InRelease  Temporary failure resolving 'security.ubuntu.com'
150.1 W: Some index files failed to download. They have been ignored, or old ones used instead.
150.2 Reading package lists...
150.2 Building dependency tree...
150.2 Reading state information...
150.2 E: Unable to locate package pigz
150.2 E: Unable to locate package iptables
150.2 ERROR: Feature "Docker (Docker-in-Docker)" (ghcr.io/devcontainers/features/docker-in-docker) failed to install! Look at the documentation at https://github.com/devcontainers/features/tree/main/src/docker-in-docker for help troubleshooting this error.
------

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

6 participants