It fails to connect to the sever, unless I execute as this:
sudo /usr/bin/snapd/snapd
Once that is done, in another terminal window, I can login successfully.
I can find snaps and generally browse what is available. However, when I try to snap install something, the “core” packages is fetched first (whether I am trying to install okular or hello-world) and the following roor appears:
error: cannot perform the following tasks:
- Mount snap "core" (2381) (internal error: could not unmarshal state entry "snap-type": invalid snap type: "")
- Setup snap "core" (2381) security profiles (cannot find installed snap "core" at revision 2381)
Any ideas?
I am running Ubuntu 16.04 xenial on a Chromebook via crouton.
Currently you need to have systemd (not necessarily as pid 1; see how we make it work in 14.04) and a newer kernel (I don’t know exactly the minimum, but I do know that 3.18 is EOL for nearly a year already; having said that it’s possible somebody’s backported all the bits, but I don’t know) for snapd to work.
And that’s without looking into running it properly confined, which a chroot is going to make difficult.
I could not find a solution. Chipaca’s answer, though, seems correct. It has to do with the kernel version. Eventually, I was able to install the new version of Okular in a different way and abandoned the attempt to install snapd all together.