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

Failed to install .apk #168

Open
4ntoine opened this issue Nov 14, 2021 · 4 comments
Open

Failed to install .apk #168

4ntoine opened this issue Nov 14, 2021 · 4 comments
Labels

Comments

@4ntoine
Copy link

4ntoine commented Nov 14, 2021

Alpine linux 3.14.2 (x86_64 virt) after libc6-compat installed and uninstalled:

# apk add --allow-untrusted ./glibc-2.34-r0.apk 
1 error; 111 MiB in 56 packages

adding -v does not add any output, apk fix does not help:

# apk fix
(1/1) [APK unavailable, skipped] Reinstalling glibc (2.34-r0)
1 error; 111 MiB in 56 packages
@sgerrand
Copy link
Owner

sgerrand commented Mar 14, 2022

Hello and thanks for reporting this error. Unfortunately I can't reproduce it as reported.

$ docker run --rm --interactive --tty docker.io/library/alpine:3.14.2 ash
Unable to find image 'alpine:3.14.2' locally
3.14.2: Pulling from library/alpine
Digest: sha256:e1c082e3d3c45cccac829840a25941e679c25d438cc8412c2fa221cf1a824e6a
Status: Downloaded newer image for alpine:3.14.2
/ # wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub
/ # wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.34-r0/glibc-2.34-r0.apk
Connecting to github.com (140.82.121.4:443)
Connecting to objects.githubusercontent.com (185.199.108.133:443)
saving to 'glibc-2.34-r0.apk'
glibc-2.34-r0.apk    100% |**************************************************************************************| 1895k  0:00:00 ETA
'glibc-2.34-r0.apk' saved
/ # apk add glibc-2.34-r0.apk
fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz
(1/1) Installing glibc (2.34-r0)
OK: 10 MiB in 15 packages

Would you please share the Dockerfile for this instance if you're using a Docker image or the output of apk list | sort -u if not!

@leaspb
Copy link

leaspb commented Mar 17, 2022

I faced the same issue. To reproduce it you have to install gcompat first: apk add gcompat . Then try to install glibc - apk add glibc-2.35-r0.apk , it will fail because of gcompat installed. Then, remove gcompat: apk del gcompat
and try to install glibc again - you will see an error.

@microspino
Copy link

Happened to me too: I had gcompat installed. Removed and got the very same error when trying sudo apk add -v glibc-2.35-r1.apk
BTW -v doesn't print anything helpful.
Alpine 6.1.57-0-lts SMP PREEMPT_DYNAMIC x86_64 Linux

@NamesMT
Copy link

NamesMT commented Sep 19, 2024

For future visits, try apk del gcompat glibc then install the .apk again.

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

No branches or pull requests

5 participants