If you're using Arch Linux and you've encountered the EXPKEYSIG
error, it means that a repository's GPG key has expired. This guide will help you update the key to keep your system running smoothly.
The EXPKEYSIG
error indicates that the GPG key used to verify the packages from a repository has expired. This verification process ensures that the packages you install are authentic and secure.
First, identify the key ID from the error message. In the example above, the key ID is 0123456789ABCDEF
.
Use the following command to fetch the updated key from a key server. Note that Arch Linux uses pacman-key
for managing keys.
sudo pacman-key --recv-keys 0123456789ABCDEF
After fetching the updated key, you need to locally sign it to trust the key.
sudo pacman-key --lsign-key 0123456789ABCDEF
Finally, update your system to apply the changes.
sudo pacman -Syu
Some repositories might specify their GPG keys directly in their configuration files. Here’s how to handle these cases.
Identify the Key ID
Find the key ID in the error message. For example, 9DC858229FC7DD38854AE2D88D81803C0EBFCD88
.
Fetch the Updated Key
sudo pacman-key --recv-keys 9DC858229FC7DD38854AE2D88D81803C0EBFCD88
Sign the Updated Key
sudo pacman-key --lsign-key 9DC858229FC7DD38854AE2D88D81803C0EBFCD88
Update Your System
sudo pacman -Syu
For repositories that specify their keys, follow these steps:
Identify the Key ID
Find the key ID in the error message or repository documentation.
Fetch the Updated Key
sudo pacman-key --recv-keys <KEY_ID>
Sign the Updated Key
sudo pacman-key --lsign-key <KEY_ID>
Update Your System
sudo pacman -Syu
Suppose you have a custom repository configured like this:
[custom-repo]
Server = https://example.com/arch/$repo/$arch
SigLevel = PackageRequired
Identify the Key ID
Assume the key ID is 1234567890ABCDEF
.
Fetch the Updated Key
sudo pacman-key --recv-keys 1234567890ABCDEF
Sign the Updated Key
sudo pacman-key --lsign-key 1234567890ABCDEF
Update Your System
sudo pacman -Syu
By following these steps, you can resolve the EXPKEYSIG
error on your Arch Linux system, ensuring your repositories remain functional and secure.
The EXPKEYSIG
error can be a bit frustrating, but it's essential for maintaining the security and integrity of your package management on Arch Linux. Regularly updating your GPG keys and following the latest methods will keep your system safe and up-to-date. If you encounter this issue, refer back to this guide for a straightforward solution.