apt-get “public key is not available: NO_PUBKEY”

By | December 1, 2015

Problem:

When you run `apt-get update`, you get an error similar to:

The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 5C808C2B65558117

The solution:

? ? ? https://github.com/tommybutler/apt-key-install

You can fix it with a series of one-off commands that you’ll probably not memorize and always end up googling…  Or, you can automate this into an single easy command by adding a few lines to your .bashrc file or with a script.  I wrote the code for both options which you can snag from github (link above)

After you install it, just type, for example:  apt-key-install 5C808C2B65558117

Make sure you trust the key before you install it, and there you go! ?