void-containers icon indicating copy to clipboard operation
void-containers copied to clipboard

Help debugging xbps issue when emulating amd64 on Apple Silicon?

Open ctjlewis opened this issue 1 year ago • 2 comments
trafficstars

Hey, we have no issues running in amd64 environments, but on Apple Silicon trying to build with --platform linux/amd64 and/or FROM --platform linux/amd64 ghcr.io/void-linux/void-glibc-full:latest gives us package manager issues:

 => CACHED [1/5] FROM ghcr.io/void-linux/void-glibc-full:latest@sha256:7f582c504050231708e55e10de0fd816c9f2dac721  0.0s
 => ERROR [2/5] RUN xbps-install -Syu &&     xbps-install -y curl tar xz                                           1.6s
------                                                                                                                  
 > [2/5] RUN xbps-install -Syu &&     xbps-install -y curl tar xz:                                                      
1.558 ERROR: [reposync] failed to fetch file `https://repo-default.voidlinux.org/current/x86_64-repodata': Requested Range Not Satisfiable
1.566 [*] Updating repository `https://repo-default.voidlinux.org/current/x86_64-repodata' ...

Any idea on how to work around this locally? Apologies if this should be more obvious, tried a few different things. Works fine in CI though!

ctjlewis avatar Mar 10 '24 20:03 ctjlewis

docker needs qemu-user-static + binfmt-support to run non-native platform containers, but it seems to be running the container fine. not sure what the issue with fetching is. does a native (linux/arm64) container work?

classabbyamp avatar Mar 10 '24 21:03 classabbyamp

This error is HTTP 416 return code from the server, debug/verbose logs would be useful.

Duncaen avatar Mar 11 '24 00:03 Duncaen

If you have more information, this can be reopened

classabbyamp avatar Jul 21 '24 17:07 classabbyamp