Posted By

Louner on 08/01/11


Tagged

ubuntu debian sourceslist gpg apt-get aptitude NOPUBKEY


Versions (?)

Import PGP keys to resolve NO_PUBKEY issue


 / Published in: Bash
 

One line command to find and import all PGP keys for sources.list repositories.

  1. aptitude update 2>&1 > /dev/null | grep NO_PUBKEY | sed 's/^.*NO_PUBKEY //g' | xargs -L 1 gpg --keyserver keyserver.ubuntu.com --recv-keys; gpg --armor --export | apt-key add -

Report this snippet  

You need to login to post a comment.