sgerrand / alpine-pkg-glibc

A glibc compatibility layer package for Alpine Linux
2.05k stars 280 forks source link

can not install glibc-bin-2.28-r0 #99

Closed polarlights closed 5 years ago

polarlights commented 5 years ago

Hi, there: I followed the readme in the repo, but I can not install glibc-bin-2.28-r0 successfully. My alpine version is 3.4.6,the commands are as follows:

apk add --update \
  build-base \
  mysql-dev \
  make libxml2 libxslt-dev g++ \
  ncurses \
  libffi-dev \
  nodejs \
  wget

apk --no-cache add ca-certificates openssl

wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub && \
    cd /tmp && \
    wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.28-r0/glibc-2.28-r0.apk && \
    apk add  glibc-2.28-r0.apk && \
    wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.28-r0/glibc-bin-2.28-r0.apk && \
    wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.28-r0/glibc-i18n-2.28-r0.apk && \
apk add glibc-bin-2.28-r0.apk glibc-i18n-2.28-r0.apk

The errors are:

/app # apk add glibc-bin-2.28-r0.apk glibc-i18n-2.28-r0.apk ERROR: unsatisfiable constraints: glibc-bin-2.28-r0: masked in: cache satisfies: world[glibc-bin><Q1eU9Tz9rQ0Pq7o4H+TvVW8Tu8Ovw=] glibc-i18n-2.28-r0[glibc-bin] /bin/sh (missing): required by: glibc-bin-2.28-r0[/bin/sh] glibc-i18n-2.28-r0: masked in: cache satisfies: world[glibc-i18n><Q1Bdgh48QRh8swFA3H5ia2NRwl5Fw=]

I can not figure it out why.

Thanks for your great work and ur kind reply.

KaiGong commented 5 years ago

We have the same issue, do you have any workaround with it??

polarlights commented 5 years ago

@KaiGong Not yet.

KaiGong commented 5 years ago

@polarlights Maybe you can change the version of alpine, I tried to use more than 3.6 (include 3.6), it can be worked.

polarlights commented 5 years ago

@KaiGong Thank you. It works! U save me a lot of time. :)