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 RHEL / CentOS / AlmaLinux

Import via GnuPG then rpm

Compatible with RHEL, CentOS, AlmaLinux and Rocky Linux (both yum and dnf).

RHEL / CentOS / AlmaLinux — bash
$ gpg --keyserver hkps://keys.openpgp.org --recv-keys 3F01618A51312F3F
$ gpg --export --armor 3F01618A51312F3F | sudo rpm --import -
$ sudo yum check-update || sudo dnf check-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.