Build cannot install already installed build-snap
Metadata
Current evaluation
Build fails when installing build-snap dependencies that are already present on the system. No maintainer response after 48 days.
Suggested action: needs triage
Reason: The issue has no maintainer response, labels, or assignee after 48 days. The traceback points to craft_parts/packages/snaps.py where install_snaps() calls snap_pkg.install() for build-snap dependencies. While the current code shows a check for `if not snap_pkg.installed:` before calling install(), the issue may still be valid due to race conditions or edge cases in the installed check. Needs maintainer triage to confirm if this is still reproducible or has been fixed.
Impact:
60
Quick Win:
27.0
Staleness:
45
Complexity:
55
Confidence:
65
Support Request:
20
Issue body
oHi,
While building a snap with build-snaps dependencies (or plugs or extension)
Dependencies that are already installed
Since Snapcraft9+ (may be not related)
I spent 80% of my day with an error:
"Error installing snap 'mesa-2404' from channel 'latest/stable'." or any other snap dependency
```
Installing build-snaps
Installing snap: gtk-common-themes
Installing snap: mesa-2404
Error installing snap 'mesa-2404' from channel 'latest/stable'.
Traceback (most recent call last):
File "/snap/snapcraft/18514/lib/python3.12/site-packages/craft_parts/packages/snaps.py", line 236, in install
subprocess.run(
File "/snap/snapcraft/current/usr/lib/python3.12/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['snap', 'install', 'mesa-2404']' returned non-zero exit status 1.
:: 2026-07-19 13:34:22.253
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/snap/snapcraft/18514/lib/python3.12/site-packages/craft_application/services/lifecycle.py", line 355, in run
self._exec(actions)
File "/snap/snapcraft/18514/lib/python3.12/site-packages/craft_application/services/lifecycle.py", line 374, in _exec
with self._lcm.action_executor() as aex:
File "/snap/snapcraft/18514/lib/python3.12/site-packages/craft_parts/executor/executor.py", line 340, in __enter__
self._executor.prologue()
File "/snap/snapcraft/18514/lib/python3.12/site-packages/craft_parts/executor/executor.py", line 109, in prologue
self._install_build_snaps()
File "/snap/snapcraft/18514/lib/python3.12/site-packages/craft_parts/executor/executor.py", line 306, in _install_build_snaps
packages.snaps.install_snaps(build_snaps)
File "/snap/snapcraft/18514/lib/python3.12/site-packages/craft_parts/packages/snaps.py", line 304, in install_snaps
snap_pkg.install()
File "/snap/snapcraft/18514/lib/python3.12/site-packages/craft_parts/packages/snaps.py", line 243, in install
raise errors.SnapInstallError(
craft_parts.packages.errors.SnapInstallError: Error installing snap 'mesa-2404' from channel 'latest/stable'.
```
I really want to quit making snaps...
Thanks
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen3.6-35b-a3b-mtp-q6 |
Impact:
60
Quick Win:
27.0
Staleness:
45
Complexity:
55
Confidence:
65
Support Request:
20
|
needs triage | Build fails when installing build-snap dependencies that are already present on the system. No maintainer response after 48 days. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
10
Complexity:
40
Confidence:
95
Support Request:
10
|
needs triage | Snapcraft fails to install build-snap dependencies already present on the host, throwing a SnapInstallError during builds. Currently untriaged with no maintainer response. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
10
Complexity:
40
Confidence:
85
Support Request:
30
|
needs triage | Build fails when installing build-snap dependencies that are already present. Error occurs in craft_parts during snap install step. No maintainer response yet. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
5
Complexity:
40
Confidence:
85
Support Request:
10
|
needs triage | Build fails when snapcraft attempts to install build-snap dependencies that are already present on the host. No maintainer response yet. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #2099923 Snapcraft builds are failing: install of snap "snapcraft" failed | snapcraft (launchpad) | open | Snapcraft builds failing due to outdated snapd (2.61) on build infrastructure unable to install core20 base. Issue is 556 days old with no maintainer response. | |
| #2103599 Snap installation fails though library dependencies are in snap | snapcraft (launchpad) | open | Snap installation fails on riscv64 when shared libraries in stage-packages cannot be loaded at runtime. No maintainer response in 518 days. |