Snapd on Raspbian (jessie)

Hm, I thought I dropped that dependency. Let me correct that and upload a new version of the package later today.

Thank you for your quick reply!
Please let me know when you get to it. I am eager to test it out.

I’ve updated the repository now to include the apparmor package. Can you try again?

1 Like

Installation was successful. Thank you very much. I am going to try some snaps now.

Great! Let me know if you run into any other problems.

The repository is now updated to include snapd 2.26.4 and detects armv6l and prevents installation of armhf core snaps on these devices. This means that snapd will now work properly on the Raspberry Pi 1 and Zero but as we don’t have a core snap or any other snaps available will be non functional.

3 Likes

Morphis,

I had to use the --force-yes switch but it seemed to install ok. I’ll play with it a bit and let you know how it works. Given that we had huge kernel issues with Ubuntu 16.04 on Raspberry Pi V3, we had to go back to Raspian, If it works this will be very helpful. Thanks for your efforts.

OK. Already have an issue as it can’t seem to find our snap’s on the Ubuntu store. Is there something we need to do to get access to the store?

No. I guess the snaps you’re looking for are not published for the armhf architecture then.

We have a user that installed snapd on raspbian after following the instructions in the original post. Installing on an rpi2

But is getting this error:

ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object

Output of snap --version

snap 2.26.4+git5.gc87f366.dirty
snapd 2.26.4+git5.gc87f366.dirty
series 16
raspbian 8
kernel 4.4.34-v7+

Output of snap list

pi@raspberrypi:~ $ snap list
Name Version Rev Developer Notes
core 16-2 1690 canonical -
rocketchat-server 0.57.0-develop 787 rocketchat -

He’s tried with both stable and edge with our rocketchat-server snap. The stable is for sure confirmed to work on ubuntu core on an rpi3.

Do you have any apparmor denials? Eg: grep DEN /var/log/syslog

Is it possible to use the RPi camera from within a snap? I have tried two custom developed snaps, one which doesn’t use the camera works great but the one that does use the camera gives me an error about libmmal.

to verify it works, you can try https://snapcraft.io/mjpg-streamer
that uses the camera interface (you need to connect it as described on that page after snap install)

Thank you, I wasn’t aware of the snap connect command. I will give that a try and see if it fixes the issue.

I installed it using snap install mjpg-streamer but it doesn’t seem to included the input_raspicam.so plugin. Is that as expected? Also I looked at the source on GitHub and it looks like it includes the header files copied from the RPi repo so I’m not sure if I should include those headers in my project as well?

Including the raspicam driver means i need to also include all of vc … thats some effort i simply havent invested into the snap yet :slight_smile: (it works fine with USB cams though)

Oh okay, yeah that is what I thought. I’m at the same state for my project. I think I am going to try something like this next:

parts:
  mmal:
    source: .
    plugin: dump
    organize:
      lib/: opt/vc/lib/

Where I copy /opt/vc/lib/mmal* into my snap. Any thoughts?

Well, i’d do it the same way (probably not using opt/ inside my snap though) and then watch the fallout :slight_smile:

FYI

IGT20 Debian Jessie alternative to Raspbian that should also function with your work

The IGT20 is based on TI Sitara AM3352 (Cortex-A8)

I am also getting this error when installing snapd: W: GPG error: https://mm.gravedo.de jessie InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY B9465B841412DB3B

Raspbian
Linux tester-16 4.9.35-v7+ #1014 SMP Fri Jun 30 14:47:43 BST 2017 armv7l GNU/Linux
https://mm.gravedo.de/raspbian/ jessie main

Not sure were a server I can fetch this key