← Back to issue list

Build cannot install already installed build-snap

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#2161237
Type
issue
State
open
Author
~t-a-k
Labels
—
Created
Updated
Closed
—

Current evaluation

Snapcraft 9 build aborts with SnapInstallError when a build-snap (mesa-2404) is already installed; traceback points to craft-parts snaps.py. Untriaged: no labels, no maintainer comments, no reproducer for 75 days.

Suggested action: needs triage

Reason: The report has zero comments, no labels and no assignee, so it has not been assessed by a maintainer. It is also unactionable as written: the reporter supplies only a traceback and no snapcraft.yaml, no build command, no `snap version`/`snapd` state, and not even the raw output of the failing `snap install mesa-2404` command, so the actual cause is unknown (plausible non-bug causes include no network/store access, confinement or content-interface conflicts, or revision mismatch rather than a snapcraft defect). Note the failing code is `craft_parts/packages/snaps.py` install/install_snaps, i.e. it lives in canonical/craft-parts, so ownership of the fix also needs to be determined before work starts.

Evaluated by: mr-cal-bot

Impact: 35 Quick Win: 5 Complexity: 50 Confidence: 72 Actionability: 28

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
stealth/space-bunny-alpha
Impact: 35
Quick Win: 5
Complexity: 50
Confidence: 72
Actionability: 28
needs triage Snapcraft 9 build aborts with SnapInstallError when a build-snap (mesa-2404) is already installed; traceback points to craft-parts snaps.py. Untriaged: no labels, no maintainer comments, no reproducer for 75 days.
stealth/space-bunny-alpha
Impact: 57
Quick Win: 18
Complexity: 45
Confidence: 89
Actionability: 58
needs triage Snapcraft 9 builds abort with SnapInstallError when an installed build dependency such as mesa-2404 is requested; the report has no maintainer triage or complete reproducer.
qwen3.6-35b-a3b-mtp-q6
Impact: 60
Quick Win: 27
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

Date Change
created

Related issues

Issue Project State Summary Similarity
#2099923 Snapcraft builds are failing: install of snap "snapcraft" failed snapcraft (launchpad) open Reported Launchpad Bionic non-i386 builds cannot install Snapcraft 7.x/stable because core20 needs snapd 2.61; the issue remains open, untriaged, and unanswered.
70%