Description
Was looking at #81 and wanted to see how difficult it would be to try adding gamescope to the steam snap, I'm not familiar with snap but I could see in the source that the dependencies are specified declaratively, so I thought I could give this a go.
I cloned the repo and tried to follow the Building locally instructions so that I could get into a position where I could make changes to the snap. I immediately ran into this error:
snapcraft --use-lxd
craft-providers error: LXD requires additional permissions.
Ensure that the user is in the 'lxd' group.
So I added myself to the group, and tried logging out / logging in which didn't work, so I restarted my machine, after which I could proceed with the build which failed:
Installed package repositories
Field 'version' was not adopted from metadata
Failed to execute pack in instance.
Recommended resolution: Run the same command again with --debug to shell into the environment if you wish to introspect this failure.
execution log tail
2025-02-15 13:49:37.930 Executing on host: lxc --project snapcraft list local: --format=yaml
2025-02-15 13:49:37.976 Failed to execute pack in instance.
2025-02-15 13:49:37.980 Traceback (most recent call last):
2025-02-15 13:49:37.980 File "/snap/snapcraft/13519/lib/python3.12/site-packages/snapcraft/application.py", line 483, in main
2025-02-15 13:49:37.980 return app.run()
2025-02-15 13:49:37.980 ^^^^^^^^^
2025-02-15 13:49:37.980 File "/snap/snapcraft/13519/lib/python3.12/site-packages/craft_application/application.py", line 663, in run
2025-02-15 13:49:37.980 return_code = self._run_inner()
2025-02-15 13:49:37.980 ^^^^^^^^^^^^^^^^^
2025-02-15 13:49:37.980 File "/snap/snapcraft/13519/lib/python3.12/site-packages/snapcraft/application.py", line 203, in _run_inner
2025-02-15 13:49:37.980 return_code = super()._run_inner()
2025-02-15 13:49:37.980 ^^^^^^^^^^^^^^^^^^^^
2025-02-15 13:49:37.980 File "/snap/snapcraft/13519/lib/python3.12/site-packages/craft_application/application.py", line 610, in _run_inner
2025-02-15 13:49:37.980 dispatcher = self._get_dispatcher()
2025-02-15 13:49:37.980 ^^^^^^^^^^^^^^^^^^^^^^
2025-02-15 13:49:37.980 File "/snap/snapcraft/13519/lib/python3.12/site-packages/snapcraft/application.py", line 431, in _get_dispatcher
2025-02-15 13:49:37.980 self._check_for_classic_fallback()
2025-02-15 13:49:37.980 File "/snap/snapcraft/13519/lib/python3.12/site-packages/snapcraft/application.py", line 343, in _check_for_classic_fallback
2025-02-15 13:49:37.980 raise errors.ClassicFallback()
2025-02-15 13:49:37.980 snapcraft.errors.ClassicFallback
2025-02-15 13:49:37.980
2025-02-15 13:49:37.980 During handling of the above exception, another exception occurred:
2025-02-15 13:49:37.980 Traceback (most recent call last):
2025-02-15 13:49:37.980 File "/snap/snapcraft/13519/lib/python3.12/site-packages/snapcraft/parts/lifecycle.py", line 539, in _run_in_provider
2025-02-15 13:49:37.980 instance.execute_run(cmd, check=True, cwd=output_dir)
2025-02-15 13:49:37.980 File "/snap/snapcraft/13519/lib/python3.12/site-packages/craft_providers/lxd/lxd_instance.py", line 254, in execute_run
2025-02-15 13:49:37.980 return self.lxc.exec(
2025-02-15 13:49:37.980 ^^^^^^^^^^^^^^
2025-02-15 13:49:37.980 File "/snap/snapcraft/13519/lib/python3.12/site-packages/craft_providers/lxd/lxc.py", line 390, in exec
2025-02-15 13:49:37.980 return runner(final_cmd, timeout=timeout, check=check, **kwargs)
2025-02-15 13:49:37.980 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-02-15 13:49:37.980 File "/snap/snapcraft/current/usr/lib/python3.12/subprocess.py", line 571, in run
2025-02-15 13:49:37.980 raise CalledProcessError(retcode, process.args,
2025-02-15 13:49:37.980 subprocess.CalledProcessError: Command '['lxc', '--project', 'snapcraft', 'exec', 'local:snapcraft-steam-on-amd64-for-amd64-99755316', '--cwd', '/root/project', '--', 'env', 'PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin', 'CRAFT_MANAGED_MODE=1', 'DEBIAN_FRONTEND=noninteractive', 'DEBCONF_NONINTERACTIVE_SEEN=true', 'DEBIAN_PRIORITY=critical', 'snapcraft', 'pack', '--verbosity=brief', '--build-for', 'amd64']' returned non-zero exit status 1.
System
Ubuntu 24.10
uname -a
Linux 6.12.12-2-liquorix-amd64 #1 ZEN SMP PREEMPT liquorix 6.12-16ubuntu1~oracular (2025-02-05) x86_64 x86_64 x86_64 GNU/Linux
Could be the kernel I am on? I run Liquorix for gaming performance. Not sure how I can debug this any further, so reporting an issue to share my experience.