Return to Snippet

Revision: 49905
at August 1, 2011 23:17 by Louner


Initial Code
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 -

Initial URL


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

Initial Title
Import PGP keys to resolve NO_PUBKEY issue

Initial Tags
ubuntu

Initial Language
Bash