Snapcraft builds are failing: install of snap "snapcraft" failed
Metadata
Current evaluation
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.
Suggested action: close stale
Reason: This is an infrastructure/environment issue (outdated snapd 2.61 on Launchpad build machines) rather than a snapcraft code bug. The error message itself is actionable ('try to refresh snapd'). The issue has been inactive for 556 days with no maintainer engagement, and the problem is external to this repository.
Impact:
20
Quick Win:
18.0
Staleness:
95
Complexity:
10
Confidence:
80
Support Request:
85
Issue body
Every build except i386 is failing for me:
Running '['linux32', 'snap', 'install', '--classic', '--channel=7.x/stable', 'snapcraft']'. Attempt 1
error: cannot perform the following tasks:
- Ensure prerequisites for "snapcraft" are available (cannot install snap base "core20": snap "core20" assumes unsupported features: snapd2.61 (try to refresh snapd))
Running '['linux32', 'snap', 'install', '--classic', '--channel=7.x/stable', 'snapcraft']'. Attempt 2
error: cannot perform the following tasks:
- Ensure prerequisites for "snapcraft" are available (cannot install snap base "core20": snap "core20" assumes unsupported features: snapd2.61 (try to refresh snapd))
Running '['linux32', 'snap', 'install', '--classic', '--channel=7.x/stable', 'snapcraft']'. Attempt 3
error: cannot perform the following tasks:
- Ensure prerequisites for "snapcraft" are available (cannot install snap base "core20": snap "core20" assumes unsupported features: snapd2.61 (try to refresh snapd))
Install failed
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/lpbuildd/target/build_snap.py", line 295, in run
self.install()
File "/usr/lib/python3/dist-packages/lpbuildd/target/build_snap.py", line 161, in install
self.backend.run(
File "/usr/lib/python3/dist-packages/lpbuildd/target/lxd.py", line 776, in run
raise e
File "/usr/lib/python3/dist-packages/lpbuildd/target/lxd.py", line 770, in run
return self._run_command(
^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/lpbuildd/target/lxd.py", line 699, in _run_command
subprocess.check_call(cmd, **kwargs)
File "/usr/lib/python3.12/subprocess.py", line 413, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['lxc', 'exec', 'lp-bionic-armhf', '--', 'linux32', 'snap', 'install', '--classic', '--channel=7.x/stable', 'snapcraft']' returned non-zero exit status 1.
Revoking proxy token...
[Mon Feb 24 18:29:09 2025]
RUN: /usr/share/launchpad-buildd/bin/in-target scan-for-processes --backend=lxd --series=bionic --arch=armhf SNAPBUILD-2735323
Scanning for processes to kill in build SNAPBUILD-2735323
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen3.6-35b-a3b-mtp-q6 |
Impact:
20
Quick Win:
18.0
Staleness:
95
Complexity:
10
Confidence:
80
Support Request:
85
|
close stale | 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. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
95
Complexity:
30
Confidence:
85
Support Request:
15
|
close stale | Snapcraft installation fails during builds due to snapd2.61 incompatibility with core20 base on Ubuntu Bionic. Issue is 513 days old with no maintainer response. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
95
Complexity:
30
Confidence:
85
Support Request:
10
|
close stale | Snapcraft installation fails in Launchpad LXD builds due to snapd/core20 version mismatch. Unaddressed for 512 days with no maintainer response. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
95
Complexity:
30
Confidence:
85
Support Request:
20
|
close stale | Snapcraft installation fails in builds due to an outdated snapd/core20 version mismatch in the LXD container. Open for 500 days with no maintainer response. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
95
Complexity:
25
Confidence:
85
Support Request:
10
|
close stale | Build failure installing snapcraft in LXD containers due to outdated snapd on Ubuntu 18.04. Inactive for 482 days with no maintainer response or follow-up details. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #2014963 Snapcraft fails to build snap if Snapcraft itself is installed using `snap try` | snapcraft (launchpad) | open | Snapcraft fails when using snap try due to snapd not allowing file downloads for try-mode snaps. Issue is 1251 days old with no maintainer engagement. | |
| #2054099 snapcraft (edge) fails to build core24 snaps. Running "apt update" within base container fails | snapcraft (launchpad) | open | snapcraft edge fails to build core24 snaps due to apt update failing with unresolved ftpmaster.internal in base container. Issue is 931 days old with no maintainer response. | |
| #2064639 snapcraft remote-build core20 armhf openssl error | snapcraft (launchpad) | open | snapcraft remote-build fails on core20 armhf due to OpenSSL 3.0 legacy provider error in configure hook. Unlabelled, no maintainer response, 854 days old. | |
| #1939713 snapcraft init create base: core18 snap | snapcraft (launchpad) | closed | Closed without direct resolution, likely abandoned due to inactivity. Subsequent Snapcraft releases updated the init default to core20 and core22, effectively resolving the reported behavior. | |
| #1989030 snapcore/snapcraft image is outdated (again) | snapcraft (launchpad) | open | Report that snapcore/snapcraft Docker images are outdated, claiming automation to keep them updated may be broken. Issue is 4 years old with no maintainer response or labels. | |
| #2158702 Snapcraft API not answering | snapcraft (launchpad) | open | User reports intermittent API failures from api.snapcraft.io causing build issues. No maintainer response after 67 days. | |
| #1866300 snapcraft fails to build core20 snap | snapcraft (launchpad) | closed | Closed without comments or resolution after 74 days. The core20 build failure involving multipass hangs and LXD tracebacks was abandoned. | |
| #2104274 Snapcraft has unclear behavior when providing same build-snap from different channels | snapcraft (launchpad) | open | Bug report: snapcraft resolves build-snap from wrong channel (stable vs candidate). Untriaged, no maintainer response in 527 days. | |
| #1869542 snapcraft unable to find snap/snapcraft.yaml file | snapcraft (launchpad) | open | snapcraft 3.11 (2019) loses snap/snapcraft.yaml after a few builds and drops to the VM shell; workaround is snapcraft clean. 6+ years old, no labels, no maintainer comments, tied to a long-superseded build environment. | |
| #2161237 Build cannot install already installed build-snap | snapcraft (launchpad) | open | Build fails when installing build-snap dependencies that are already present on the system. No maintainer response after 48 days. |