EXPKEYSIG
debian-ubuntu
Fix EXPKEYSIG 3F01618A51312F3F
GitLab B.V. <packages@gitlab.com> — by GitLab B.V.
Error message
EXPKEYSIG 3F01618A51312F3F GitLab B.V. <packages@gitlab.com>
Fix commands for Debian
Method 1 Modern method (Debian 11+ / Ubuntu 22.04+)
The modern approach stores keys in /usr/share/keyrings/ as binary .gpg files and references them per-repository. This avoids the deprecated apt-key ring.
$
sudo apt-key del 51312F3F
$
sudo gpg --keyserver keyserver.ubuntu.com --recv-keys 3F01618A51312F3F
$
sudo gpg --export 3F01618A51312F3F | sudo tee /usr/share/keyrings/51312F3F-archive-keyring.gpg > /dev/null
# Update your sources.list entry to include [signed-by=/usr/share/keyrings/51312F3F-archive-keyring.gpg]
$
sudo apt-get update
Method 2 Legacy apt-key method (Debian 10 / Ubuntu 20.04 and older)
Uses apt-key which is deprecated but still functional on older systems.
$
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3F01618A51312F3F
$
sudo apt-get update
After importing the key
Run sudo apt-get update (or your distro's equivalent)
again. If successful you should see Hit: lines with no
EXPKEYSIG warnings. Still broken?
Check that your /etc/apt/sources.list.d/ entry references the correct
[signed-by=…] keyring path.