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

Unable to lock. Could not find package either named java-common or that provides java-common #1118

Closed
farcop opened this issue May 9, 2024 · 4 comments

Comments

@farcop
Copy link

farcop commented May 9, 2024

apko lock openjdk.yaml

contents:
  keyring:
    - https://cdn.azul.com/public_keys/alpine-signing@azul.com-5d5dc44c.rsa.pub
  repositories:
    - https://dl-cdn.alpinelinux.org/alpine/edge/main
    - https://dl-cdn.alpinelinux.org/alpine/edge/community
    - https://repos.azul.com/zulu/alpine
  packages:
    - alpine-baselayout
    - zulu17-jre-headless~=17.0.8.1
    - tzdata
    - ca-certificates
    - bash
    - curl

entrypoint:
  command: /bin/sh -l

environment:
  LANG: en_US.UTF-8
  LANGUAGE: en_US:en
  LC_ALL: en_US.UTF-8
  TZ: Etc/UTC
  JAVA_HOME: /usr/lib/jvm/zulu17-ca

paths:
  - path: /usr/lib/jvm/default-jvm
    type: symlink
    source: /usr/lib/jvm/zulu17-ca
    permissions: 0o777

archs:
  - arm64
  - amd64

Gives that output:

Workdir: /Users/farcop/Sources/kublr
ℹ️            | loading config file: ./images/openjdk/openjdk.yaml
ℹ️            | Determining packages for 2 architectures: [arm64 amd64]
ℹ️            | loading config file: ./images/openjdk/openjdk.yaml
ℹ️            | doing pre-flight checks
ℹ️            | initializing apk database
2024/05/09 19:08:08 [DEBUG] GET https://alpinelinux.org/releases.json
2024/05/09 19:08:09 [DEBUG] GET https://alpinelinux.org/keys/alpine-devel%40lists.alpinelinux.org-616ae350.rsa.pub
2024/05/09 19:08:09 [DEBUG] GET https://alpinelinux.org/keys/alpine-devel%40lists.alpinelinux.org-616ae350.rsa.pub
ℹ️            | finished initializing apk database
ℹ️            | setting apk world
ℹ️            | setting apk repositories
ℹ️            | initializing apk keyring
2024/05/09 19:08:09 [DEBUG] HEAD https://cdn.azul.com/public_keys/alpine-signing@azul.com-5d5dc44c.rsa.pub
ℹ️            | resolving and calculating 'world' (packages to install) 
ℹ️            | determining desired apk world
2024/05/09 19:08:10 [DEBUG] HEAD https://dl-cdn.alpinelinux.org/alpine/edge/community/aarch64/APKINDEX.tar.gz
2024/05/09 19:08:10 [DEBUG] GET https://dl-cdn.alpinelinux.org/alpine/edge/community/aarch64/APKINDEX.tar.gz
2024/05/09 19:08:10 [DEBUG] HEAD https://dl-cdn.alpinelinux.org/alpine/edge/main/aarch64/APKINDEX.tar.gz
2024/05/09 19:08:10 [DEBUG] HEAD https://repos.azul.com/zulu/alpine/aarch64/APKINDEX.tar.gz
Error: failed to get package list for image: error getting package dependencies: could not find package either named java-common or that provides java-common for zulu17-ca-jre-headless
2024/05/09 19:08:11 error during command execution: failed to get package list for image: error getting package dependencies: could not find package either named java-common or that provides java-common for zulu17-ca-jre-headless
@hunshcn
Copy link

hunshcn commented May 17, 2024

The same problem. I used to think it was my own problem, but after debugging, I found that it was fixed in 7f0b0be.

Could we release a new version? @imjasonh @jonjohnsonjr @pdeslaur @xnox

rules_apko can only use prebuilt binaries, which is helpful.

@krishjainx
Copy link

Hello @hunshcn @farcop. We have cut a new release v0.14.7 2 weeks back. This included the fix. If this answers your question, please close this issue

@hunshcn
Copy link

hunshcn commented Jun 13, 2024

For me, it has been repaired.

@krishjainx
Copy link

Sounds good, closing this. Feel free to reach out if this is still a problem. My email is krish.jain@[domain].dev

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

3 participants