ubunturaspberry-piiotsnapcraft

Raspberry pi development


I am extremely new to IOT and have recently got myself a raspberry pi. I got Ubuntu installed on it and created a couple of snaps after connecting to ubuntu-core. The snap which was created is a armhf.snap file. When I run the snapcraft command, it gets built fine with no errors. But when I try to install the snap on my local environment, It gives me an error saying "snap requires classic confinement which is only available on classic systems". I tried using sudo install snap --dangerous snap_name.snap --classic and I still get the error. When I just run sudo install snap snap_name, I get an error saying "cannot open snap". Can anybody help me out?

Thanks.


Solution

  • So I had to change the YAML confinement to devmode or strict and run sudo snap install with --devmode option.