Troubleshoot "Expired GPG key" Error in Build

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:

 

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.