22

I've been building my own snap and installing it successfully for a while now, but just today, every time I build my snap file, when I try to install it, I get...

error: cannot find signatures with metadata for snap "mysnap_1.0_amd64.snap"

I am at a complete loss. What does this mean? How do I fix it? I can't think of what I've done to cause this to start happening.

41

It means snapd was updated without also updating the documentation, I'm afraid.

The update has to do with assertions, in this case, that is the verification that the snap comes from a trusted party. Since you're installing a local snap, you have no assertions for it, and snapd doesn't trust it. The error message could be a little more helpful.

Regardless, you can get past this during your testing with the --dangerous flag:

$ sudo snap install --dangerous <snap>

note: there was some churn on this flag; in earlier releases it was --force-dangerous.

  • That got me passed the error. Thank you! I suppose if I had read the man page for snap I should have been able to deduce that. So maybe the need for this flag will go away after a proper upgrade of the snap daemon? Edit: Oh, looks like snap is still in development. – Spencer Parkin Sep 9 '16 at 4:11
  • Indeed, snapd is still being developed. The need for this flag will go away once you publish your snap to the store, where it will get assertions. – Kyle Sep 9 '16 at 16:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.