Core22 install is failing on GitHub ARM64 runners

I am getting the following error when running my builds on GitHub’s free ubuntu-24.04-arm runners. I checked the Snapcraft logs and it seems like snap install core22 is returning a nonzero error code, but that’s as much data as I can glean from the logs. I just noticed this this week, the last time I ran my builds before this was the last week of January. Has anything on the Snap infra changed between now and then that could cause core22 to fail to resolve for ARM64 systems?

Here’s the full output from my logs:

2025-02-20 20:02:55.324 Starting snapcraft, version 8.6.2
2025-02-20 20:02:55.325 Log verbosity level set to BRIEF
2025-02-20 20:02:55.325 Preparing application...
2025-02-20 20:02:55.325 Falling back from craft-application to snapcraft.
2025-02-20 20:02:55.326 lifecycle command: 'snap', arguments: Namespace(destructive_mode=False, use_lxd=False, debug=False, enable_manifest=False, manifest_image_information=None, bind_ssh=False, build_for=None, http_proxy=None, https_proxy=None, ua_token=None, enable_experimental_ua_services=False, enable_experimental_plugins=False, enable_experimental_extensions=False, enable_developer_debug=False, enable_experimental_target_arch=False, target_arch=None, provider=None, output='out.snap')
2025-02-20 20:02:55.326 command: snap, arguments: Namespace(destructive_mode=False, use_lxd=False, debug=False, enable_manifest=False, manifest_image_information=None, bind_ssh=False, build_for=None, http_proxy=None, https_proxy=None, ua_token=None, enable_experimental_ua_services=False, enable_experimental_plugins=False, enable_experimental_extensions=False, enable_developer_debug=False, enable_experimental_target_arch=False, target_arch=None, provider=None, output='out.snap')
2025-02-20 20:02:55.338 CPU count (from process affinity): 4
2025-02-20 20:02:55.338 Invalid SNAPCRAFT_MAX_PARALLEL_BUILD_COUNT ''
2025-02-20 20:02:55.338 Running on arm64 for arm64
2025-02-20 20:02:55.347 The 'snap' command is deprecated, use 'pack' instead.
2025-02-20 20:02:55.347 Initializing parts lifecycle
2025-02-20 20:02:55.348 is_snap: True, SNAP_NAME set to snapcraft
2025-02-20 20:02:55.352 process app:1
2025-02-20 20:02:55.352 add action app:1(0)
2025-02-20 20:02:55.352 process app-files:1
2025-02-20 20:02:55.353 add action app-files:1(0)
2025-02-20 20:02:55.353 process gnome-platform-empty-dirs:1
2025-02-20 20:02:55.353 add action gnome-platform-empty-dirs:1(0)
2025-02-20 20:02:55.353 process launch-scripts:1
2025-02-20 20:02:55.353 add action launch-scripts:1(0)
2025-02-20 20:02:55.353 process app:3
2025-02-20 20:02:55.353 add action app:3(0)
2025-02-20 20:02:55.353 process app-files:3
2025-02-20 20:02:55.353 add action app-files:3(0)
2025-02-20 20:02:55.353 process gnome-platform-empty-dirs:3
2025-02-20 20:02:55.353 add action gnome-platform-empty-dirs:3(0)
2025-02-20 20:02:55.353 process launch-scripts:3
2025-02-20 20:02:55.353 add action launch-scripts:3(0)
2025-02-20 20:02:55.353 process app:4
2025-02-20 20:02:55.353 add action app:4(0)
2025-02-20 20:02:55.354 process app-files:4
2025-02-20 20:02:55.354 add action app-files:4(0)
2025-02-20 20:02:55.354 process gnome-platform-empty-dirs:4
2025-02-20 20:02:55.354 add action gnome-platform-empty-dirs:4(0)
2025-02-20 20:02:55.354 process launch-scripts:4
2025-02-20 20:02:55.354 add action launch-scripts:4(0)
2025-02-20 20:02:55.354 process app:5
2025-02-20 20:02:55.354 add action app:5(0)
2025-02-20 20:02:55.354 process app-files:5
2025-02-20 20:02:55.354 add action app-files:5(0)
2025-02-20 20:02:55.354 process gnome-platform-empty-dirs:5
2025-02-20 20:02:55.354 add action gnome-platform-empty-dirs:5(0)
2025-02-20 20:02:55.354 process launch-scripts:5
2025-02-20 20:02:55.354 add action launch-scripts:5(0)
2025-02-20 20:02:55.356 ignore patterns: ['*.snap']
2025-02-20 20:02:55.357 ignore patterns: ['*.snap']
2025-02-20 20:02:55.357 Installing build-packages
2025-02-20 20:02:55.357 Installing build-snaps
2025-02-20 20:02:55.987 Installing snap: core22
2025-02-20 20:02:56.974 Error installing snap 'core22' from channel 'latest/stable'.
2025-02-20 20:02:56.983 Traceback (most recent call last):
2025-02-20 20:02:56.983   File "/snap/snapcraft/13524/lib/python3.12/site-packages/snapcraft/application.py", line 483, in main
2025-02-20 20:02:56.983     return app.run()
2025-02-20 20:02:56.983            ^^^^^^^^^
2025-02-20 20:02:56.983   File "/snap/snapcraft/13524/lib/python3.12/site-packages/craft_application/application.py", line 663, in run
2025-02-20 20:02:56.983     return_code = self._run_inner()
2025-02-20 20:02:56.983                   ^^^^^^^^^^^^^^^^^
2025-02-20 20:02:56.983   File "/snap/snapcraft/13524/lib/python3.12/site-packages/snapcraft/application.py", line 203, in _run_inner
2025-02-20 20:02:56.983     return_code = super()._run_inner()
2025-02-20 20:02:56.983                   ^^^^^^^^^^^^^^^^^^^^
2025-02-20 20:02:56.983   File "/snap/snapcraft/13524/lib/python3.12/site-packages/craft_application/application.py", line 610, in _run_inner
2025-02-20 20:02:56.983     dispatcher = self._get_dispatcher()
2025-02-20 20:02:56.983                  ^^^^^^^^^^^^^^^^^^^^^^
2025-02-20 20:02:56.983   File "/snap/snapcraft/13524/lib/python3.12/site-packages/snapcraft/application.py", line 431, in _get_dispatcher
2025-02-20 20:02:56.983     self._check_for_classic_fallback()
2025-02-20 20:02:56.983   File "/snap/snapcraft/13524/lib/python3.12/site-packages/snapcraft/application.py", line 343, in _check_for_classic_fallback
2025-02-20 20:02:56.983     raise errors.ClassicFallback()
2025-02-20 20:02:56.983 snapcraft.errors.ClassicFallback
2025-02-20 20:02:56.983 
2025-02-20 20:02:56.983 During handling of the above exception, another exception occurred:
2025-02-20 20:02:56.983 Traceback (most recent call last):
2025-02-20 20:02:56.983   File "/snap/snapcraft/13524/lib/python3.12/site-packages/craft_parts/packages/snaps.py", line 236, in install
2025-02-20 20:02:56.983     subprocess.run(
2025-02-20 20:02:56.983   File "/snap/snapcraft/current/usr/lib/python3.12/subprocess.py", line 571, in run
2025-02-20 20:02:56.983     raise CalledProcessError(retcode, process.args,
2025-02-20 20:02:56.983 subprocess.CalledProcessError: Command '['snap', 'install', 'core22']' returned non-zero exit status 1.
2025-02-20 20:02:56.983 
2025-02-20 20:02:56.983 The above exception was the direct cause of the following exception:
2025-02-20 20:02:56.983 Traceback (most recent call last):
2025-02-20 20:02:56.983   File "/snap/snapcraft/13524/lib/python3.12/site-packages/snapcraft/parts/parts.py", line 204, in run
2025-02-20 20:02:56.983     with self._lcm.action_executor() as aex:
2025-02-20 20:02:56.983   File "/snap/snapcraft/13524/lib/python3.12/site-packages/craft_parts/executor/executor.py", line 304, in __enter__
2025-02-20 20:02:56.983     self._executor.prologue()
2025-02-20 20:02:56.983   File "/snap/snapcraft/13524/lib/python3.12/site-packages/craft_parts/executor/executor.py", line 89, in prologue
2025-02-20 20:02:56.983     self._install_build_snaps()
2025-02-20 20:02:56.983   File "/snap/snapcraft/13524/lib/python3.12/site-packages/craft_parts/executor/executor.py", line 270, in _install_build_snaps
2025-02-20 20:02:56.983     packages.snaps.install_snaps(build_snaps)
2025-02-20 20:02:56.983   File "/snap/snapcraft/13524/lib/python3.12/site-packages/craft_parts/packages/snaps.py", line 304, in install_snaps
2025-02-20 20:02:56.983     snap_pkg.install()
2025-02-20 20:02:56.983   File "/snap/snapcraft/13524/lib/python3.12/site-packages/craft_parts/packages/snaps.py", line 243, in install
2025-02-20 20:02:56.983     raise errors.SnapInstallError(
2025-02-20 20:02:56.983 craft_parts.packages.errors.SnapInstallError: Error installing snap 'core22' from channel 'latest/stable'.
2025-02-20 20:02:56.983 Full execution log: '/home/runner/.local/state/snapcraft/log/snapcraft-20250220-200255.324130.log'

For anyone else encountering this, just run snap refresh, that seems to resolve the issue for me. I think the GitHub ARM runner image is using some bad package version.