← Back to issue list

Snapcraft broken on ARM64

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1907721
Type
issue
State
closed
Author
~mauringo
Labels
bug snapcraft
Created
Updated
Closed

Current evaluation

⚠️ This summary may be outdated — the issue content or evaluation prompts have changed since this evaluation was made.

Closed without comments. No fix or merge was applied. The ARM64 Multipass QEMU error and YAML !PrimeState deserialization bug were likely resolved by upstream Snapcraft updates or abandoned.

Suggested action:

No scores available.

Issue body

Snapcraft suddenly stopped workging. I am using a PI4 running ubuntu 18.04. the Snapcraft snap force to use Multipass which give this error, same in ubuntu 20.04: Launching a VM. launch failed: Internal error: qemu-system-x86_64 failed getting vmstate (Process returned exit code: 1) with output: qemu-system-aarch64: -nographic: No machine specified, and there is no default Use -machine help to list supported machines An error occurred with the instance when trying to launch with 'multipass': returned exit code 2. Ensure that 'multipass' is setup correctly and try again. ubuntu@ubuntu:~/trtrtr$ sudo snapcraft using snapcraft via apt i got this error, any advice so solve the problem? /usr/lib/python3/dist-packages/snapcraft/internal/states/_state.py:96: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details. state = yaml.load(f.read()) Sorry, an error occurred in Snapcraft: Traceback (most recent call last): File "/usr/bin/snapcraft", line 11, in <module> load_entry_point('snapcraft==2.43.1+18.4.1', 'console_scripts', 'snapcraft')() File "/usr/lib/python3/dist-packages/click/core.py", line 722, in __call__ return self.main(*args, **kwargs) File "/usr/lib/python3/dist-packages/click/core.py", line 697, in main rv = self.invoke(ctx) File "/usr/lib/python3/dist-packages/click/core.py", line 1043, in invoke return Command.invoke(self, ctx) File "/usr/lib/python3/dist-packages/click/core.py", line 895, in invoke return ctx.invoke(self.callback, **ctx.params) File "/usr/lib/python3/dist-packages/click/core.py", line 535, in invoke return callback(*args, **kwargs) File "/usr/lib/python3/dist-packages/click/decorators.py", line 17, in new_func return f(get_current_context(), *args, **kwargs) File "/usr/lib/python3/dist-packages/snapcraft/cli/_runner.py", line 93, in run ctx.forward(lifecyclecli.commands["snap"]) File "/usr/lib/python3/dist-packages/click/core.py", line 553, in forward return self.invoke(cmd, **kwargs) File "/usr/lib/python3/dist-packages/click/core.py", line 535, in invoke return callback(*args, **kwargs) File "/usr/lib/python3/dist-packages/snapcraft/cli/lifecycle.py", line 136, in snap project = _execute(steps.PRIME, parts=[], **kwargs) File "/usr/lib/python3/dist-packages/snapcraft/cli/lifecycle.py", line 35, in _execute lifecycle.execute(step, project_config, parts) File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle/_runner.py", line 90, in execute executor.run(step, part_names) File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle/_runner.py", line 196, in run self._create_meta(step, processed_part_names) File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle/_runner.py", line 354, in _create_meta common.env = self.config.snap_env() File "/usr/lib/python3/dist-packages/snapcraft/internal/project_loader/_config.py", line 289, in snap_env dependency_paths |= part.get_primed_dependency_paths() File "/usr/lib/python3/dist-packages/snapcraft/internal/pluginhandler/__init__.py", line 885, in get_primed_dependency_paths state = self.get_prime_state() File "/usr/lib/python3/dist-packages/snapcraft/internal/pluginhandler/__init__.py", line 144, in get_prime_state self._prime_state = cast(states.PrimeState, self.get_state(steps.PRIME)) File "/usr/lib/python3/dist-packages/snapcraft/internal/pluginhandler/__init__.py", line 148, in get_state return states.get_state(self.plugin.statedir, step) File "/usr/lib/python3/dist-packages/snapcraft/internal/states/_state.py", line 96, in get_state state = yaml.load(f.read()) File "/usr/local/lib/python3.6/dist-packages/yaml/__init__.py", line 114, in load return loader.get_single_data() File "/usr/local/lib/python3.6/dist-packages/yaml/constructor.py", line 43, in get_single_data return self.construct_document(node) File "/usr/local/lib/python3.6/dist-packages/yaml/constructor.py", line 47, in construct_document data = self.construct_object(node) File "/usr/local/lib/python3.6/dist-packages/yaml/constructor.py", line 92, in construct_object data = constructor(self, node) File "/usr/local/lib/python3.6/dist-packages/yaml/constructor.py", line 420, in construct_undefined node.start_mark) yaml.constructor.ConstructorError: could not determine a constructor for the tag '!PrimeState' in "<unicode string>", line 1, column 1: !PrimeState ^

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Closed without comments. No fix or merge was applied. The ARM64 Multipass QEMU error and YAML !PrimeState deserialization bug were likely resolved by upstream Snapcraft updates or abandoned.
qwen/qwen3.6-35b-a3b Closed without resolution. Reports Snapcraft ARM64 failures from Multipass/QEMU errors and a deprecated YAML loader in v2.43.1. Likely abandoned or superseded by newer Snapcraft releases that fixed YAML handling and QEMU support.
qwen3.6-35b-a3b-mtp-q6 Closed without resolution. Likely abandoned or superseded by newer Snapcraft versions that resolved the Multipass ARM64 incompatibility and YAML deserialization error.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#5638 Snapcraft fails to run on 32bit userspace container on 64bit ARM kernel. snapcraft closed Closed and moved to internal tracking (SNAPCRAFT-1190). No fix merged; the proposed architecture mapping remains unimplemented.
75%
#1641123 snapcraft does not properly detect the architecture when kernel is 64 bits but userspace is 32 snapcraft (launchpad) closed Closed without resolution. Snapcraft incorrectly identified arm64 architecture in 64-bit kernel/32-bit userspace chroots, generating mismatched snaps. The report was abandoned due to inactivity.
74%
#1569280 Snapcraft fails to strip go binaries on arm snapcraft (launchpad) closed Closed without resolution. Snapcraft failed to strip Go binaries on ARM during Launchpad builds, causing failures despite amd64 success. No fix or comments were provided.
73%
#1761598 Snapcraft modifies binaries snapcraft (launchpad) closed Closed without resolution. Snapcraft 2.39.2 and 2.40.1 modified binaries by adding 4096 bytes, a regression from 2.35. The report was abandoned with no comments or fix applied.
72%
#1608032 snapcraft crashes with useless message on bad YAML snapcraft (launchpad) closed Abandoned. Snapcraft crashed with an unhelpful error on invalid YAML. No fix or follow-up was provided.
72%
#1752766 Snapcraft fails to prime part containg device files snapcraft (launchpad) closed Closed without a direct fix. Snapcraft crashes when priming parts with device files, throwing an OSError during ELF detection. The bug was likely abandoned or resolved in newer Snapcraft versions.
72%
#1838098 snapcraft prime fails if it finds an invalid ELF file snapcraft (launchpad) closed Closed without a fix. Snapcraft prime crashed on invalid ELF files due to an uncaught ELFError. With zero comments and no PR, the report was abandoned or superseded by newer versions handling malformed binaries gracefully.
71%
#1769551 snapcraft 2.42 not working in trusty armhf snapcraft (launchpad) closed Closed without comments or resolution. The author reverted to version 2.41, indicating the issue was abandoned or superseded by newer releases.
71%
#1980536 snapcraft unusable on systems not using apt snapcraft (launchpad) closed Closed without resolution. Snapcraft retained hard apt dependencies, causing crashes on non-Debian systems like Arch Linux. The issue appears abandoned with no fix provided.
71%
#1752964 Snapcraft snap broken on trusty snapcraft (launchpad) closed Closed without resolution. Snapcraft v2.39.2 failed on Ubuntu Trusty due to a missing liblz4.so.1 dependency for mksquashfs. No comments were posted, and the report was likely abandoned following Trusty's end-of-life.
71%