gpt4 book ai didi

尝试使用 armhf arch 安装时出现 Docker alpine-pkg-glibc 错误

转载 作者:行者123 更新时间:2023-12-02 18:28:32 26 4
gpt4 key购买 nike

我正在通过这种方式在 Raspberry Pi 3B+ 上安装最新版本的 alpine-pkg-glibc:

# Install Dependencies
RUN apk --no-cache add ca-certificates wget \
&& 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.29-r0/glibc-2.29-r0.apk \
&& wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.29-r0/glibc-bin-2.29-r0.apk \
&& wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.29-r0/glibc-i18n-2.29-r0.apk \
&& apk add glibc-bin-2.29-r0.apk glibc-i18n-2.29-r0.apk glibc-2.29-r0.apk

但是我收到了这个错误:

fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/main/armhf/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/community/armhf/APKINDEX.tar.gz
(1/3) Installing glibc (2.29-r0)
(2/3) Installing glibc-bin (2.29-r0)
(3/3) Installing glibc-i18n (2.29-r0)
Executing glibc-bin-2.29-r0.trigger
/usr/glibc-compat/sbin/ldconfig: line 1: syntax error: unexpected "("
ERROR: glibc-bin-2.29-r0.trigger: script exited with error 2
OK: 63 MiB in 61 packages
Removing intermediate container 5d82962062fa
---> 524153539aee
Step 6/12 : RUN /usr/glibc-compat/bin/localedef -i en_US -f UTF-8 en_US.UTF-8
---> Running in 6640abb3a3db
/usr/glibc-compat/bin/localedef: line 1: syntax error: unexpected ")"
The command '/bin/sh -c /usr/glibc-compat/bin/localedef -i en_US -f UTF-8 en_US.UTF-8' returned a non-zero code: 2

知道哪里出了问题吗?

谢谢

最佳答案

二进制文件位于 https://github.com/sgerrand/alpine-pkg-glibc/仅适用于 x86_64

尽管您应该能够为 Rpi 构建它: https://github.com/chrisanthropic/docker-alpine-rpi-glibc-builder/blob/master/Dockerfile

或者,如果 v2.22 适合您,那么这里有一个 Rpi ARM 二进制文件: https://github.com/armhf-docker-library/glibc/releases

关于尝试使用 armhf arch 安装时出现 Docker alpine-pkg-glibc 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55027422/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com