Identify Expired GPG Keys
You can identify and validate there are expired GPG keys in your container by running:
sudo apt-key list | grep "expired:"
Pre-Built Docker Image
If you are using a CircleCI pre-built Docker Image and are getting an "Expired GPG key" error in your build. You can resolve this issue by simply upgrading to a newer version of the image you are using.
Custom Image
If you are using a custom image you can upgrade your GPG keys with:
apt-key adv --keyserver keys.gnupg.net --recv-keys KEY_ID
You will need to run this command with the KEY_ID of the expired key(s).
Additional Resources:
- Pre-Built CircleCI Docker Images
- How to solve an expired key (KEYEXPIRED) with apt
- What does the apt-key adv command mean?
Comments
Article is closed for comments.