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

Help debugging xbps issue when emulating amd64 on Apple Silicon? #21

Open
ctjlewis opened this issue Mar 10, 2024 · 2 comments
Open

Help debugging xbps issue when emulating amd64 on Apple Silicon? #21

ctjlewis opened this issue Mar 10, 2024 · 2 comments

Comments

@ctjlewis
Copy link

ctjlewis commented Mar 10, 2024

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 ctjlewis changed the title Help emulating amd64 on M1? Help debugging xbps issue when emulating amd64 on Apple Silicon? Mar 10, 2024
@classabbyamp
Copy link
Member

classabbyamp commented Mar 10, 2024

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?

@Duncaen
Copy link
Member

Duncaen commented Mar 11, 2024

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

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

No branches or pull requests

3 participants