Skip to content

Instantly share code, notes, and snippets.

@vordan
Created December 1, 2015 19:31
Show Gist options
  • Save vordan/8117d765d0d74ff84dd9 to your computer and use it in GitHub Desktop.
Save vordan/8117d765d0d74ff84dd9 to your computer and use it in GitHub Desktop.
Repair apt-get update
sudo rm -r /var/lib/apt/lists
sudo mkdir -p /var/lib/apt/lists/partial
sudo apt-get clean
sudo apt-get update
sudo apt-key list | grep expired
Get the key to use from that result:
pub 4096R/BE1DB1F1 2011-03-29 [expired: 2014-03-28]
sudo apt-key adv --recv-keys --keyserver keys.gnupg.net BE1DB1F1
sudo apt-get update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment