I have deployed a snap for Ubuntu 20.04 LTS and it works perfectly. But I tried to change the .yaml file to adapt my snap to Ubuntu 16.04 LTS. The thing is the snap building finished successfully but when I tried to install it on a device (which is not connect connected to internet), I receive this message:
That architectures: configuration tells snapcraft that building on any platform produces a snap that is runnable on armhf. This is likely not what you want. Instead you should change it to:
architectures:
- build-on: armhf
run-on: armhf
And then you should run your build on a system that has the armhf architecture (e.g. build on a raspberry pi, not your desktop PC)
Indeed I think it could work but I installed snapcraft and Multipass on a Raspberry Pi 3B+ with the latest version of Raspbian. But I have another problem… again…
When I tried to snap my project with the command “snapcraft” I get that my CPU doesn’t support KVM extensions.
Have you an idea on how I can activate this ?
install the lxd snap (run sudo lxd.init and just hit enter everywhere) and use snapcraft --use-lxd then it will use a container instead of trying to use a VM … snapcraft should perhaps print a hint to this in the error output …