Import PGP keys to resolve NO_PUBKEY issue

/ Published in: Bash
Save to your folder(s)

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

Copy this code and paste it in your HTML
  1. aptitude update 2>&1 > /dev/null | grep NO_PUBKEY | sed 's/^.*NO_PUBKEY //g' | xargs -L 1 gpg --keyserver --recv-keys; gpg --armor --export | apt-key add -

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.