Snapcraft fails in LXD container on Debian 9
Metadata
Current evaluation
Closed as stale. The Snapcraft LXD container build failure on Debian 9 was not resolved due to outdated Debian and Snapcraft versions no longer being supported.
Suggested action: —
No scores available.
Issue body
# OS information
* Distribution: Debian
* Distribution version: 9
`lxc info`
```
driver: lxc
driver_version: 2.1.1
kernel: Linux
kernel_architecture: x86_64
kernel_version: 4.9.0-5-amd64
server: lxd
server_pid: 12509
server_version: "2.21"
storage: btrfs
storage_version: "4.4"
```
# Issue description
Running `SNAPCRAFT_CONTAINER_BUILDS=1 snapcraft` results in
```
Looking up assertion ['account-key', 'public-key-sha3-384=BWDEoaqyr25nF5SNCvEv2v7QnM9QsfCc0PBMYD_i2NGSQ32EF2d4D0hqUel3m8ul']
Looking up assertion ['snap-declaration', 'snap-name=core']
Looking up assertion ['snap-revision', 'snap-revision=4017', 'snap-id=99T7MUlRhtI3U0QFgl5mXXESAiSwt776']
Adding assertion core_4017.assert
Installing /run/core_4017.snap
error: cannot perform the following tasks:
- Mount snap "core" (4017) ([start snap-core-4017.mount] failed with exit status 1: Job for snap-core-4017.mount failed. See "systemctl status snap-core-4017.mount" and "journalctl -xe" for details.
)
Stopping local:snapcraft-rstudio
The following command failed to run: 'snap install /run/core_4017.snap' exited with 1
```
# Steps to reproduce
1. install `snapd` on Debian 9 (`sudo apt-get install snapd`)
2. Install `lxd` using `snap install lxd`
3. Add yourself to group "lxd" and logout/login
4. Clone any project that contains a `snapcraft.yaml` file, e.g. https://github.com/pat-s/rstudio
5. Run `SNAPCRAFT_CONTAINER_BUILDS=1 snapcraft` on the project root
# Note
This approach works fine in 16.04 and 17.10
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Closed as stale. The Snapcraft LXD container build failure on Debian 9 was not resolved due to outdated Debian and Snapcraft versions no longer being supported. | |
| qwen/qwen3.8-27b |
Impact:
10
Quick Win:
7.0
Staleness:
95
Complexity:
30
Confidence:
85
Support Request:
15
|
close stale | Snapcraft container build on Debian 9 fails when snapd inside the LXD container cannot mount the core snap. Report is 8+ years old with 0 comments, targets an EOL OS, and has had no maintainer activity. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
98
Complexity:
45
Confidence:
90
Support Request:
15
|
close stale | Snapcraft container builds fail on Debian 9 due to snapd mount errors. The report is over eight years old, targets an EOL OS, and has seen no maintainer activity or updates. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
98
Complexity:
30
Confidence:
90
Support Request:
10
|
close stale | Snapcraft fails to mount core snap in LXD container on Debian 9. No maintainer response, 8 years old, Debian 9 is EOL. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
98
Complexity:
20
Confidence:
90
Support Request:
10
|
close stale | Snapcraft build fails in LXD container on Debian 9 due to snap core mount error. Issue is over 8 years old with no maintainer response. | |
| qwen3.6-35b-moe-q4 |
Staleness:
98
Complexity:
25
Confidence:
95
Support Request:
50
|
close stale | Snapcraft build fails in LXD container on Debian 9 due to snap mount error. Issue is over 8 years old with no activity. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1746612 Snapcraft cleanbuild doesn't work if you're not using the LXD snap | snapcraft (launchpad) | closed | Closed without resolution. Snapcraft hardcodes the LXD snap path during cleanbuild, causing failures with deb-installed LXD. The report appears abandoned or superseded by updated Snapcraft versions that dynamically detect LXD installations. | |
| #1795827 Snapcraft doesn't install snapcraft inside the lxd container | snapcraft (launchpad) | open | Snapcraft's LXD build provider failed to install the snapcraft snap inside the container, leaving 'snapcraft: not found'. Reported ~8 years ago with no maintainer interaction; the provider code has since been heavily refactored (craft-providers integration). | |
| #1570706 Snapcraft cleanbuild command doesn't work | snapcraft (launchpad) | closed | Closed without resolution, likely abandoned or superseded. The cleanbuild command failed due to LXC hash format incompatibility and container stop errors. | |
| #5420 Snapcraft 7 fails to launch a LXD container based on host apt sources entries | snapcraft | closed | Closed as a duplicate of #4408. Snapcraft 7 fails to parse PGP fingerprints in host apt sources when launching LXD containers, triggering an apt_pkg.Error. Resolution is tracked in the referenced duplicate. | |
| #4443 snapcraft on ARM 64 - stuck at lxd | snapcraft | closed | Resolved in Snapcraft 7.5.4 by implementing a network timeout instead of an infinite loop. The hang was caused by LXD container networking misconfigurations, often due to Docker or VPN conflicts. Closed as fixed. | |
| #1859469 snapcraft lxd + snapd transition in progress | snapcraft (launchpad) | closed | Closed as non-reproducible and abandoned. The snapcraft lxd command failed due to a snapd transition conflict, but the issue was resolved in version 3.8 and later. | |
| #1956216 Snapcraft is no longer working within a Docker container | snapcraft (launchpad) | closed | Closed without resolution. The report detailed a snapcraft ModuleNotFoundError in Docker containers, but received no comments or fixes. The issue remains abandoned. | |
| #1666735 snapcraft cleanbuild does not work with lxd installed via snap | snapcraft (launchpad) | closed | Closed without resolution or merge. The report notes snapcraft cleanbuild fails to detect LXD installed via snap, suggesting checks via snap list or lxc list instead of apt cache. No fix was implemented or documented. | |
| #1697979 snapcraft fails on initial cleanbuild probe | snapcraft (launchpad) | closed | Closed without resolution. Snapcraft cleanbuild failed due to LXD connection errors when LXD was provided via a third-party snap alias. The report received no comments or fixes and was abandoned. | |
| #1890965 snapcraft --use-lxd is broken | snapcraft (launchpad) | closed | Closed without a documented fix. The hardcoded LXD image URL returning 404 broke CI. Likely abandoned or resolved upstream. |