Poorly worded error when installing a local snap without assertions

Bug #1621575 reported by Evan
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
snapd
Confirmed
Undecided
Unassigned

Bug Description

$ snap install cassandra_3.7_amd64.snap
error: cannot find signatures with metadata for snap "cassandra_3.7_amd64.snap"

This error message does a poor job of describing what went wrong and what I can do to remedy the situation.

Might I suggest something like:
$ snap install cassandra_3.7_amd64.snap
Cannot install a local snap without an accompanying local snap-build assertion.
Please provide a snap-build assertion and try again.
Alternatively, re-run with --force-dangerous if you trust the snap content.

Tags: eco-team
Evan (ev)
summary: - No assertions when installing local snap error is poorly worded
+ Poorly worded error when trying to install a local snap without
+ assertions
summary: - Poorly worded error when trying to install a local snap without
- assertions
+ Poorly worded error when installing a local snap without assertions
Leo Arias (elopio)
Changed in snappy:
status: New → Confirmed
Revision history for this message
Celso Providelo (cprov) wrote :

Evan,

snap-build doesn't fill the whole trust-path for a snap:

 [snap-build =>] snap-revision => snap-declaration => account-key => account

and since it is either trusted (fully) or not, the clearest thing to do is to suggest `--force-dangerous`.

Other more elaborate plan would be to design a tool for creating and signing all the assertions needed to distribute snaps safely (and pack them please, 5+ files would be annoying).

Revision history for this message
Natalia Bidart (nataliabidart) wrote :

Also documentation at snapcraft.io should be updated accordingly.

Revision history for this message
XiaoGuo, Liu (liu-xiao-guo) wrote :

I am also having this problems, and all of sudden, I could not install my snap. It would be good to give tips if it fails to install.

Revision history for this message
XiaoGuo, Liu (liu-xiao-guo) wrote :

it is also good to have a short-hand option like -d(angerous) so that we do not need to type more words when developing.

Evan (ev)
tags: added: eco-team
Michael Vogt (mvo)
affects: snappy → snapd
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.