Fixing "cannot find signatures with metadata for snap" Error in Ubuntu and other Linux

The other day I was trying to install massCode application. For installation, it provided a Snap file to download.

When I tried to install the application from Snap file

sudo snap install snap_file

It gave me the following error:

error: cannot find signatures with metadata for snap “masscode_2.6.1_amd64.snap”

cannot find signature with metadata for snap

That was strange. While adding external repositories in Ubuntu, you have to add the GPG key. But no such things were provided by the developer here.

The ‘fix’ is easy and simple. Let me explain it to you.

Handling “cannot find signatures with metadata for snap” error

There are no signatures involved here.

What happens is that you have downloaded a Snap installer file from a third party. The snap mechanism in Ubuntu expects you to get the snap packages from the official snap store.

Since it doesn’t come from the snap store, you see the ‘cannot find signatures with metadata for snap’ error message. The error message is not descriptive, like most error messages.

So, what’s the solution here?

Any snap package that is not distributed through the Snap store has to be installed with the –dangerous flag. That’s the rule.

sudo snap install --dangerous path_to_snap_file

This way, you tell the snap package manager to explicitly install the snap package.

Here, I used this flag and was able to install massCode from its snap package successfully.

installing third party snap packages

How ‘dangerous’ is it to install snap packages this way? Almost the same as downloading and installing packages in deb format.

In my opinion, if you are downloading the snap package from the project developer’s website, you are already entrusting the project. In such cases, you can install it with the –dangerous flag.

Of course, you should first search if the package is available in the snap store or not:

snap find package_name

I hope this quick little tip helped you fix the Snap error. If you have questions or suggestions please let me know. If you want to learn more, see this guide on using Snap commands.

About the author
Abhishek Prakash

Abhishek Prakash

Created It's FOSS 11 years ago to share my Linux adventures. Have a Master's degree in Engineering and years of IT industry experience. Huge fan of Agatha Christie detective mysteries 🕵️‍♂️

Become a Better Linux User

With the FOSS Weekly Newsletter, you learn useful Linux tips, discover applications, explore new distros and stay updated with the latest from Linux world

It's FOSS

Great! You’ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to It's FOSS.

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.