← Back to issue list

stage-packages pull, fails for arm64 target architecture

View original Github issue

Metadata

Project
snapcraft
Number
#4386
Type
issue
State
closed
Author
ArcherThompson
Labels
Status: Needs information
Created
Updated
Closed

Current evaluation

Closed as abandoned after the author changed their build process and could not confirm if the arm64 stage-packages pull failure persists. No fix was implemented.

Suggested action:

No scores available.

Issue body

### Bug Description ok so I was having an issue on a more complicated app this script has word for months and months and suddenly about 3 weeks ago it stopped working(although it reproducible in older versions even back in 6.x). This has stopped develoment for arm64 device cold and we are really needing some help here and it seems to be a bug in some shape or form. a sample hello world snap with some extra stage packages for testing is posted in .yaml section. this script will work fine: `TARGET_DOTNET=linux-x64 TARGET_ARCH=amd64 # Run dotnet publish to generate self-contained .NET executable with given runtime. dotnet publish --configuration Release --runtime ${TARGET_DOTNET} --output ./publish/${TARGET_ARCH} --self-contained true /property:GenerateFullPaths=true /property:PublishSingleFile=true /property:PublishTrimmed=true /property:DebugType=None /property:DebugSymbols=false # Clean all snap part assets snapcraft clean --destructive-mode # Build snap without separate container snapcraft --destructive-mode --enable-experimental-target-arch --target-arch ${TARGET_ARCH} --debug` This script will fail every time: `#!/usr/bin/env bash TARGET_DOTNET=linux-arm64 TARGET_ARCH=arm64 # Run dotnet publish to generate self-contained .NET executable with given runtime. dotnet publish --configuration Release --runtime ${TARGET_DOTNET} --output ./publish/${TARGET_ARCH} --self-contained true /property:GenerateFullPaths=true /property:PublishSingleFile=true /property:PublishTrimmed=true /property:DebugType=None /property:DebugSymbols=false # Clean all snap part assets snapcraft clean --destructive-mode # Build snap without separate container snapcraft --destructive-mode --enable-experimental-target-arch --target-arch ${TARGET_ARCH}` with error: `*EXPERIMENTAL* --target-arch for core20 enabled. Setting target machine to 'arm64' Get:1 libnorm1_1.5.8+dfsg2-2build1_arm64.deb [262 kB] Err libnorm1_1.5.8+dfsg2-2build1_arm64.deb File not found - /home/boschrexroth/./.cache/snapcraft/download/libnorm1_1.5.8+dfsg2-2build1_arm64.deb (2: No such file or directory) Fetched 0 B in 0s (0 B/s) Package fetch error: The item '/home/boschrexroth/.cache/snapcraft/download/libnorm1_1.5.8+dfsg2-2build1_arm64.deb' could not be fetched: File not found - /home/boschrexroth/./.cache/snapcraft/download/libnorm1_1.5.8+dfsg2-2build1_arm64.deb (2: No such file or directory)` ### To Reproduce as far as I can tell any snap that runs snapcraft --destructive-mode --enable-experimental-target-arch --target-arch ${TARGET_ARCH} and has stage packages will reproduce the error. ### Environment This occurs on my VMs running ubuntu core 18-22 ### snapcraft.yaml ```shell # Getting started # See https://snapcraft.io/docs/getting-started # Snapcraft references # See https://snapcraft.io/docs/snapcraft-yaml-reference version: '1.0.0' name: ctrlx-dotnet-hello-world summary: Hello World sample written in .NET for ctrlX. description: | Programm is prompting "Hello World" to standard output. Enter 'sudo snap logs ctrlx-dotnet-hello-world.app -f | more' to see the output. confinement: strict #confinement: devmode #icon: assets/icons/ICONHERE.png grade: stable # must be 'stable' to release into candidate/stable channels base: core20 type: app apps: app: command: hello.world daemon: simple restart-condition: always passthrough: restart-delay: 10s environment: DOTNET_SYSTEM_GLOBALIZATION_INVARIANT: 'true' parts: app: plugin: dump source: ./publish/${SNAPCRAFT_TARGET_ARCH} stage-packages: - libnorm1 - libpgm-5.2-0 - libsodium23 - libzmq5 - libicu66 ``` ### Relevant log output ```shell *EXPERIMENTAL* --target-arch for core20 enabled. Setting target machine to 'arm64' Get:1 libnorm1_1.5.8+dfsg2-2build1_arm64.deb [262 kB] Err libnorm1_1.5.8+dfsg2-2build1_arm64.deb File not found - /home/boschrexroth/./.cache/snapcraft/download/libnorm1_1.5.8+dfsg2-2build1_arm64.deb (2: No such file or directory) Fetched 0 B in 0s (0 B/s) Package fetch error: The item '/home/boschrexroth/.cache/snapcraft/download/libnorm1_1.5.8+dfsg2-2build1_arm64.deb' could not be fetched: File not found - /home/boschrexroth/./.cache/snapcraft/download/libnorm1_1.5.8+dfsg2-2build1_arm64.deb (2: No such file or directory) ``` ### Additional context _No response_

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Closed as abandoned after the author changed their build process and could not confirm if the arm64 stage-packages pull failure persists. No fix was implemented.
qwen/qwen3.6-35b-a3b Snapcraft stage-packages pull failures for the arm64 target architecture were reported. The issue was abandoned without a fix after the author changed their build workflow and could no longer reproduce the error.
qwen/qwen3.6-35b-a3b Stage-package fetch failures for arm64 targets were closed as no longer relevant. After maintainer follow-up, the author confirmed they changed their build process, leaving the bug unverified and abandoned.
qwen3.6-35b-a3b-mtp-q6 A stage-packages download failure for arm64 targets was reported. The author changed their build process and could no longer reproduce the problem, leaving it unresolved and effectively abandoned.
qwen3.6-35b-a3b-mtp-q6 Stage-packages downloads failed for arm64 targets. The report was abandoned without a fix after the author changed their build process and could no longer reproduce the problem.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1686481 stage-packages does not handle unmet dependencies snapcraft (launchpad) closed stage-packages ignored target architectures, downloading dependencies for the build host instead. Closed without comments or resolution after 288 days, effectively abandoned.
74%
#1885074 stage-packages behaviour inconsistent snapcraft (launchpad) open Snapcraft 4.0.7: stage-packages with :arm64 suffix cross-compile fine but native arm64 build yields an empty snap. Reported ~6 years ago, no maintainer response, no labels, zero comments.
72%