I have started a project to create handy network sensor that can be deployed in locations where physical security may be lax/ non-existent. The goal is to design a device that uses Ubuntu Core for (disk encryption and general device hardening) as its base OS and install zeek on top using Snap packages to capture network traffic.
I understand that you can set up and install apt repositories using snap eg.
Thank you for the advise, but it looks as though I will not get that far I am experiencing an issue adding the GPG key for the repository:
name: zeek
base: core22
version: ‘0.1’
summary: Zeek sensor Snap
description: |
Zeek install for Mikrotik 2 interface appliances
grade: devel
confinement: strict
That looks like a snapcraft bug where the gpg error is not captured.
Looking at your project, it looks like your key server is wrong (I believe opensuse stopped hosting their key server). Try keyserver.ubuntu.com or keys.openpgp.org.
Using that got further along in the build and raised a more useful error during apt update: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY
I’m not sure what the best solution is. Perhaps someone else on the forum can advise. The most common solution I see is adding the repository and calling apt-key adv in an override script, instead of using package-repositories (example).
That looks to have done the trick, thank you for sending through the example I was able to take advantage of the override-build feature and it was able to install the required package using the following format: