Home > Bash, Linux, Ubuntu > Remove old apt keys

Remove old apt keys

December 18th, 2020 Leave a comment Go to comments

If you get error:

# apt update
W: GPG error: ...repositories... Release: The following signatures were invalid: EXPKEYSIG [KEY]

you can list expired keys:

sudo apt-key list | grep "expired: "

and then try to get new keys:

sudo apt-key adv --keyserver keys.gnupg.net --recv-keys [KEY]

Ref: https://askubuntu.com/questions/650032/gpg-errorthe-following-signatures-were-invalid-keyexpired

Categories: Bash, Linux, Ubuntu Tags:
  1. No comments yet.
  1. No trackbacks yet.