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 Arch Linux

Method 1 Refresh key via pacman-key

Refreshes all keys in the pacman keyring from keyservers. Slowest but most thorough.

Arch Linux — bash
$ sudo pacman-key --refresh-keys

Method 2 Receive specific key

Fetches the specific expired key and locally signs it to mark it as trusted.

Arch Linux — bash
$ sudo pacman-key --keyserver keyserver.ubuntu.com --recv-keys 3F01618A51312F3F
$ sudo pacman-key --lsign-key 3F01618A51312F3F

Method 3 Reinitialize keyring (nuclear option)

Reinitializes the entire pacman keyring. Use only if other methods fail.

Arch Linux — bash
$ sudo pacman-key --init
$ sudo pacman-key --populate archlinux

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.