snapcraft try with core22 doesn't support lxd
Metadata
Current evaluation
Core22 support for snapcraft try --use-lxd was added by merged PR snapcore/snapcraft#3981 (commit 2691262b8) and released on edge.
Resolution: closed resolved
Reason: Merged PR snapcore/snapcraft#3981, commit 2691262b8, added snapcraft try support for core22. Maintainer tigarmo confirmed the fix was available in the latest edge release.
Evaluated by: mr-cal-bot
No scores available.
Issue body
Running `snapcraft try --use-lxd` with a core22 snap results in:
$ snapcraft try --use-lxd
Launching a container.
Build environment is in unknown state, cleaning first.
The 'LXD' provider does not support base 'core22'
Recommended resolution:
Ensure build-base or base are correct in the snapcraft.yaml file.
Version:
$ snapcraft -V
snapcraft 7.2.7
Building this snap on lxd works fine though.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Core22 support for snapcraft try --use-lxd was added by merged PR snapcore/snapcraft#3981 (commit 2691262b8) and released on edge. | |
| stealth/space-bunny-alpha | — | closed resolved | snapcraft try --use-lxd rejected core22 ("The 'LXD' provider does not support base 'core22'"). Fixed by merged PR #3981, commit 2691262b8, adding try support for core22; closed after edge release. | |
| stealth/space-bunny-alpha | — | closed resolved | Core22 support for `snapcraft try --use-lxd` was added by merged PR canonical/snapcraft#3981 (commit 2691262b8). | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution. snapcraft try --use-lxd failed with core22 bases due to an unsupported provider error. Likely abandoned or resolved by correcting build-base in snapcraft.yaml. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution. The snapcraft try --use-lxd command fails with core22 bases due to an LXD provider limitation. No fix was implemented, and the report was abandoned after extended inactivity. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution, likely abandoned due to zero comments and prolonged inactivity. The snapcraft try failure with core22 on LXD remains unfixed, though standard LXD builds function correctly. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Abandoned due to inactivity. The snapcraft try --use-lxd command failed with core22 bases citing LXD provider limitations. No fix, workaround, or follow-up comments were provided. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Likely Fixed By:
snapcore/snapcraft#3981
(confidence 100%)
Merged commit 2691262b8 added core22 support for snapcraft try.
-
Duplicate Of:
snapcraft (launchpad)#1978844
(confidence 100%)
The reporter explicitly identified Launchpad bug #1978844 as a duplicate.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1978844 snapcraft try not available for core22-based snap | snapcraft (launchpad) | closed | Core22 support for snapcraft try was merged in canonical/snapcraft#3981 (commit 2691262b8) and released on the edge channel. | |
| #3981 commands, lifecycle: provide snapcraft try for core22 | snapcraft | merged | Merged in snapcore/snapcraft#3981 (commit 2691262b8), adding snapcraft try for core22 by mounting the host prime directory into the build instance and priming without packing. | |
| #1984172 snapcraft and core22 with experimental extensions doesn't offer to configure lxd | snapcraft (launchpad) | closed | Closed as abandoned without a fix after prolonged inactivity; Snapcraft 7.1.1 hung on core22 with the ros2-humble experimental extension instead of configuring LXD. | |
| #1866300 snapcraft fails to build core20 snap | snapcraft (launchpad) | closed | Closed without a documented fix after core20 Multipass/LXD failures; core20 build-base support was unavailable and the workaround was destructive mode. | |
| #2524 Snapcraft try | snapcraft | merged | Merged snapcraft try via PR #2524 (commit ec579eaa1); LXD tests were split out because they require Snapcraft installed from the store. | |
| #1892551 snapcraft fails to run if it is installed as a try snap | snapcraft (launchpad) | open | Snapcraft 4.1.5 failed in LXD builds when launched via snap try because snapd cannot export a try-snap file; the affected legacy provider is absent from the current codebase. | |
| #4960 Can't build Core20 snaps on non-snap distros | snapcraft | open | Core20 LXD builds reject distro-installed LXD on NixOS/Arch; a maintainer specified a backport, while core20 support now requires Snapcraft 8. | |
| #2014963 Snapcraft fails to build snap if Snapcraft itself is installed using `snap try` | snapcraft (launchpad) | open | `snap try` Snapcraft could not self-inject into legacy LXD builds because snapd cannot download a try snap; the affected provider is removed, but current behavior needs retesting. | |
| #5604 `snapcraft try` for `core24` | snapcraft | open | Core24 `snapcraft try` support remains unimplemented; current code explicitly raises FeatureNotImplemented. Maintainers confirmed it is now feasible after Craft Application 5.0 refactoring. |