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

adoptium-ca-certificates not in Debian Bookworm repository #816

Open
syhe opened this issue Jun 7, 2023 · 10 comments · Fixed by adoptium/installer#683
Open

adoptium-ca-certificates not in Debian Bookworm repository #816

syhe opened this issue Jun 7, 2023 · 10 comments · Fixed by adoptium/installer#683
Assignees
Labels
enhancement New feature or request Waiting on OP

Comments

@syhe
Copy link

syhe commented Jun 7, 2023

Please provide a brief summary of the bug

The package repository at https://packages.adoptium.net/artifactory/deb/ does not provide adoptium-ca-certificates for Debian Bookworm.
Other than that, it works really nice. Thank you for maintaining this distribution!

I realize that Bookworm is only going to be released as stable in three days, but I thought I'd ask beforehand, if you perhaps wanted to get things ready for release.

Please provide steps to reproduce where possible

FROM debian:bookworm-slim
RUN set -eux; \
  apt-get update; \
  apt-get install -y --no-install-recommends \
    wget \
    apt-transport-https \
    ca-certificates
RUN mkdir -p /etc/apt/keyrings; \
  wget -O - https://packages.adoptium.net/artifactory/api/gpg/key/public | tee /etc/apt/keyrings/adoptium.asc; \
  echo "deb [signed-by=/etc/apt/keyrings/adoptium.asc] https://packages.adoptium.net/artifactory/deb $(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" | tee /etc/apt/sources.list.d/adoptium.list;
RUN set -eux; \
  apt-get update; \
  apt-get install -y --no-install-recommends \
    temurin-8-jdk

Expected Results

temurin-8-jdk (and thus adoptium-ca-certificates) installs without an error message.

Actual Results

(On Debian Bookworm, add the repository as per the instructions, then try to install any Temurin version.)

[…]
+ apt-get install -y --no-install-recommends temurin-8-jdk
Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 temurin-8-jdk : Depends: adoptium-ca-certificates but it is not installable
E: Unable to correct problems, you have held broken packages.

What Java Version are you using?

bash: java: command not found

What is your operating system and platform?

Debian Bookworm

How did you install Java?

No response

Did it work before?

No response

Did you test with the latest update version?

No response

Did you test with other Java versions?

No response

Relevant log output

No response

@syhe syhe added the bug Something isn't working label Jun 7, 2023
@karianna karianna added enhancement New feature or request and removed bug Something isn't working labels Jun 9, 2023
@Dragon-Knight
Copy link

Exactly the same problem when installing 'temurin-17-jdk'.
Debian 12x64.
What should I do to install jdk-17?

@sxa
Copy link
Member

sxa commented Jun 13, 2023

Yep this is broken. A temporary workaround is to use bullseye instead of bookworm in the repo file, which will allow it to work (The .deb packages are the same across all versions so it shouldn't cause ay problems)

@Dragon-Knight
Copy link

Yep this is broken. A temporary workaround is to use bullseye instead of bookworm in the repo file, which will allow it to work (The .deb packages are the same across all versions so it shouldn't cause ay problems)

Thanks a lot!
PS: This installs the adoptium-ca-certificates package and can put back bookworm in /etc/apt/sources.list.d/adoptium.list.

@syhe
Copy link
Author

syhe commented Jun 13, 2023

@sxa How long does it usually take until changes like this propagate?

% curl -s 'https://packages.adoptium.net/artifactory/deb/dists/bookworm/main/binary-amd64/Packages' | grep 'Package: ' | sort -u
Package: temurin-11-jdk
Package: temurin-11-jre
Package: temurin-17-jdk
Package: temurin-17-jre
Package: temurin-19-jre
Package: temurin-20-jdk
Package: temurin-20-jre
Package: temurin-8-jdk
Package: temurin-8-jre

@saghul
Copy link

saghul commented Jun 14, 2023

Still seeing this error, has the package been uploaded? FWIW I'm getting it on aarch64.

@sxa
Copy link
Member

sxa commented Jun 20, 2023

Yeah this shouldn't be closed yet. There's an issue which @gdams is looking at for me to resolve this. The updates have not been fully propagated.

@sxa sxa reopened this Jun 20, 2023
@sxa sxa assigned sxa and gdams Jun 20, 2023
@sxa
Copy link
Member

sxa commented Jun 20, 2023

We've got this sorted now and it seems ok for me on Bookworm/aarch64 - let me know if you still get any problems!

@sxa sxa closed this as completed Jun 20, 2023
@Hergam
Copy link

Hergam commented Dec 7, 2024

hello, it still not working:
image

@karianna karianna reopened this Dec 8, 2024
@karianna
Copy link
Contributor

karianna commented Dec 8, 2024

@sxa could this be a arm64 vs aarch64 labelling issue?

@sxa
Copy link
Member

sxa commented Dec 18, 2024

@karianna @Hergam I've just run with the docker file from the description of this issue and it installed temurin-8-jdk with the adoptium-ca-certificates without problems inside the bookworm container on an Ubuntu 22.04/aarch64 host. Can you clarify what you did before running the apt-get install, and whether you were also on Debian bookworm?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Waiting on OP
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants