I’m installing snapd on Debian 10 right now
Issuing “snap install core” as non-root gives an error:
$ snap install core
error: access denied (try with sudo)
Went fine with sudo:
$ sudo snap install core
2020-11-14T09:24:02+01:00 INFO Waiting for restart...
core 16-2.47.1 from Canonical✓ installed
Channel latest/stable for core is closed; temporarily forwarding to stable.
It seems I have to use sudo even the hello-world example.
$ snap install hello-world
error: access denied (try with sudo)
Googling a bit, it seems kind of normal, but
- it’s not clear in https://snapcraft.io/docs/installing-snap-on-debian because sudo was explicitly mentionned for the first few commands, and isn’t anymore for “snap install”.
- I also saw a mention of “snap login” (see "sudo snap install" or just "snap install"?) which, I guess, will allow installing software for just that one user. I’m not sure why creating an account is necessary for installing as a user, and is not necessary when using sudo, though.