How to resolve this error message (more information after the first section):
$ snapcraft
craft-providers error: LXD requires additional permissions.
Ensure that the user is in the 'lxd' group.
Visit https://documentation.ubuntu.com/lxd/en/latest/getting_started/ for instructions on installing and configuring LXD for your operating system.
Full execution log: '/home/user1/.local/state/snapcraft/log/snapcraft-20240304-184515.687693.log'
$ whoami
user1
$ getent group lxd
lxd:x:129:user1,user2
$
I’m trying to build a Hello World snap in C using published docs but not making progress owing to my limited understanding. The snapcraft.yaml file is:
name: hello-snap # you probably want to 'snapcraft register <name>'
base: core22 # the base snap is the execution environment for this snap
version: '0.1' # just for humans, typically '1.2+git' or '1.3.2'
summary: Snap equivalent for Hello Worldp # 79 char long summary
description: |
This hello-snap demonstrates the simplest app
for the limited purposes of this tutorial store.
grade: devel # must be 'stable' to release into candidate/stable channels
confinement: devmode # use 'strict' once you have the right plugs and slots
parts:
hello-snap:
plugin: autotools
# See 'snapcraft plugins'
source: .
build-packages:
- g++
apps:
hello-snap:
command: ./hello-snap
What are the additional permissions needed, please? Thanks.
Regards.