Skip to content

Instantly share code, notes, and snippets.

@pgaref
Created January 6, 2016 15:44
Show Gist options
  • Save pgaref/4ac9a693965fcdc961f9 to your computer and use it in GitHub Desktop.
Save pgaref/4ac9a693965fcdc961f9 to your computer and use it in GitHub Desktop.
Ubuntu expired apt-get keys FIX
#To find any expired repository keys and their IDs, use apt-key as follows:
apt-key list | grep expired
#You will get a result similar to the following:
pub 4096R/BE1DB1F1 2011-03-29 [expired: 2014-03-28]
#The key ID is the bit after the / i.e. BE1DB1F1 in this case.
#To update the key, run
sudo apt-key adv --recv-keys --keyserver keys.gnupg.net BE1DB1F1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment