Open 4ntoine opened 2 years ago
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!
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.
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 x8664 Linux
For future visits, try apk del gcompat glibc
then install the .apk again.
Alpine linux 3.14.2 (x86_64 virt) after
libc6-compat
installed and uninstalled:adding
-v
does not add any output,apk fix
does not help: