Skip to content

Instantly share code, notes, and snippets.

@khushalbokadey
Created November 16, 2017 18:48
Show Gist options
  • Save khushalbokadey/15c92c3f309bdb5920aca7da12340ae2 to your computer and use it in GitHub Desktop.
Save khushalbokadey/15c92c3f309bdb5920aca7da12340ae2 to your computer and use it in GitHub Desktop.
sudo apt-key list | \
grep "expired: " | \
sed -ne 's|pub .*/\([^ ]*\) .*|\1|gp' | \
xargs -n1 sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment