Hot to fix apt-get “The following signatures were invalid: KEYEXPIRED”
Hot to fix apt-get “The following signatures were invalid: KEYEXPIRED”
Hope it was helpful...!!!
If you are trying to run apt-get update on your ubuntu machine and seeing the error "The following signatures were invalid: KEYEXPIRED" you have come to the right place. The key expired error occurs when one or more existing key on your ubuntu machine has expired which is hindering the update. To fix this issue, you need to renew these keys. Here are the steps to renew an expired key
- Find the expired Key: Run the below command which will list all the expired keys on your ubuntu machine. Make a note of all the keys. sudo apt-key list | grep -A 1 expired
- Renew the expired Key: Take the keys from the previous command output and replace the <KEY_ID> in te below command with that. Execute this command to renew the expired key. sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys <KEY_ID>
- Run apt-get update: Now that you have renewed all the expired key you can now try running apt-get update again and it should work perfectly this time. sudo apt-get update
Refer to this screenshot for more details.
Hope it was helpful...!!!
Comments
Post a Comment