Skip to content

Instantly share code, notes, and snippets.

@simlegate
Last active December 18, 2015 23:49
Show Gist options
  • Save simlegate/5864659 to your computer and use it in GitHub Desktop.
Save simlegate/5864659 to your computer and use it in GitHub Desktop.
ubuntu 签名错误解决办法
#!/bin/bash
sudo apt-get clean
cd /var/lib/apt
sudo rm -rf lists.old
sudo mv lists lists.old
gpg --delete-key --armor 40976EAF437D05B5
sudo apt-key del 40976EAF437D05B5
gpg --keyserver subkeys.pgp.net --recv 40976EAF437D05B5
gpg --export --armor 40976EAF437D05B5 | sudo apt-key add -
sudo mkdir -p lists/partial
sudo apt-get clean
sudo apt-get update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment