Skip to content

Instantly share code, notes, and snippets.

@Luxter77
Created November 7, 2020 14:39
Show Gist options
  • Save Luxter77/51b209507ce96259857a02dd5e5f0e09 to your computer and use it in GitHub Desktop.
Save Luxter77/51b209507ce96259857a02dd5e5f0e09 to your computer and use it in GitHub Desktop.
Fixes the mess I cause upon arrival :P
#!/bin/bash
apt-get update 2>&1 1>/dev/null | sed -ne 's/.*NO_PUBKEY //p' |
while read key; do
echo "K: $key"
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys "$key" || apt-key adv --keyserver keyserver.debian.com --recv-keys "$key"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment