`charmcraft pack` fails on Resolute
Metadata
Current evaluation
charmcraft pack fails on Ubuntu Resolute 26.04 hosts when using a Jammy 20.04 build base: snapd inside the LXD build instance cannot reload snap-confine AppArmor profiles; no maintainer response yet.
Suggested action: needs triage
Reason: The report is well-evidenced with a concrete repro (`charmcraft pack` on juju-controller with a Jammy base) and container-side logs showing `apparmor_parser: Unable to replace "/usr/lib/snapd/snap-confine". Profile doesn't conform to protocol`, but it has zero comments, no labels, and no assignee, so it has never been assessed by a maintainer. The root cause appears to sit outside charmcraft (snapd/apparmor_parser inside the LXD instance vs. the host kernel), and the reporter's diagnosis is explicitly speculative ("From some searching..."), so a triage decision on whether this is a charmcraft bug, an unsupported host/base combination, or an upstream snapd/LXD matter is still needed. Repository inspection was not possible (tools returned "No pinned SHA available for project 'charmcraft'"), which caps confidence.
Evaluated by: mr-cal-bot
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha |
Impact:
55
Quick Win:
11
Complexity:
68
Confidence:
60
Actionability:
63
|
needs triage | charmcraft pack fails on Ubuntu Resolute 26.04 hosts when using a Jammy 20.04 build base: snapd inside the LXD build instance cannot reload snap-confine AppArmor profiles; no maintainer response yet. | |
| stealth/space-bunny-alpha |
Impact:
58
Quick Win:
7
Complexity:
78
Confidence:
47
Actionability:
55
|
needs triage | Packing a Jammy-base charm on a Resolute 26.04 host fails: snapd in the build container rejects host AppArmor profiles (apparmor_parser exit 185), so charmcraft cannot enable snapd. Untriaged, no maintainer response; likely upstream snapd/AppArmor incompatibility. | |
| stealth/space-bunny-alpha |
Impact:
65
Quick Win:
8
Complexity:
78
Confidence:
89
Actionability:
55
|
needs triage | Packing a Jammy-base charm fails on a Resolute host when snapd in the build container rejects AppArmor profiles, with no maintainer response or resolution yet. | |
| qwen3.6-35b-a3b-mtp-q6 |
Impact:
50
Quick Win:
20
Staleness:
40
Complexity:
60
Confidence:
70
Support Request:
10
|
needs triage | charmcraft pack fails on Ubuntu Resolute 26.04 host with Jammy container due to AppArmor protocol incompatibility. Untriaged, no maintainer response. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
5
Complexity:
65
Confidence:
90
Support Request:
15
|
needs triage | charmcraft pack fails on Ubuntu Resolute 26.04 due to AppArmor protocol incompatibility when launching Jammy containers. Unlabelled, awaiting maintainer triage. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Related To:
charmcraft#1104
(confidence 62%)
Prior charmcraft issue where `charmcraft pack` failed on a non-LTS Ubuntu host release (Lunar); closed by merged PR #1130 adding non-LTS base support plus an interim-release warning — a likely precedent for how a new-host-release packaging failure gets handled.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #560 Charmcraft pack is giving error frequently | charmcraft | closed | The failure was traced to external LXD networking blocking access to archive.ubuntu.com during snapd installation; no Charmcraft fix was merged, and the reported firewall workaround did not help. | |
| #92 Suddenly getting charmcraft internal error with charmcraft pack | craft-providers | closed | Resolved upstream in LXD 4.23 revision 22525+, which corrected overly strict device-name validation; `snap revert lxd` was a temporary workaround. | |
| #646 Failed to inject host Charmcraft snap into target environment | charmcraft | closed | Report of charmcraft 1.4.0 failing to inject the host snap into the LXD build env. Closed without a code fix: a user fixed it with `charmcraft clean --verbose` and lengau closed it in Jan 2024 as not reproducible on current versions. | |
| #511 `charmcraft pack` fails running `apt update` | charmcraft | closed | Closed with no Charmcraft code change: maintainers determined the `apt update` failure came from a broken host/LXD (fan bridge) networking setup, not a Charmcraft bug; guidance posted to Charmhub Discourse and the LXD forum. | |
| #2631 Multiple `charmcraft pack` fail on mismatching platforms | charmcraft | open | Consecutive charmcraft pack runs with different platform sets fail: second charm (24.04 only) launches a 22.04 instance and errors 'Platform not found'. Regression from 4.0.1, still present in 4.3.1, no maintainer response. | |
| #388 Charmcraft pack cannot run in a CI? | charmcraft | closed | charmcraft's strictly-confined snap blocked CI builds (pip deps install failing). Fixed by switching the snap to classic confinement (PR #288, commit d49e85e3); reporter confirmed the edge classic snap resolved their CI. | |
| #2107 lxc - Missing source path "/root/snap/charmcraft/common/cache/charmcraft/charmcraft-buildd-base-v7/BuilddBaseAlias.JAMMY/pip" | charmcraft | open | Charmcraft pack fails in LXD clusters when the shared cache directory is missing on the node hosting the instance. Maintainer acknowledged unsupported scenario, provided workarounds, and filed internal ticket CRAFT-4039. | |
| #1202 `charmcraft` installs newer version in LXC container & doesn't respect pinned snap revision | charmcraft | closed | Automatic LXC snap refreshes were fixed in PR #1219 by upgrading craft-providers and adding a regression test verifying that refreshes remain held forever. |