Если при обновлении пакетов вы получаете The following signatures were invalid: EXPKEYSIG 3F01618A51312F3F GitLab B.V.
Выглядит это примерно так:
root@gitlab:~# apt-get update
Err:3 https://packages.gitlab.com/gitlab/gitlab-ce/debian buster InRelease
The following signatures were invalid: EXPKEYSIG 3F01618A51312F3F GitLab B.V. (package repository signing key) <packages@gitlab.com>
Fetched 23.3 kB in 1s (21.0 kB/s)
Reading package lists... Done
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://packages.gitlab.com/gitlab/gitlab-ce/debian buster InRelease: The following signatures were invalid: EXPKEYSIG 3F01618A51312F3F GitLab B.V. (package repository signing key) <packages@gitlab.com>
W: Failed to fetch https://packages.gitlab.com/gitlab/gitlab-ce/debian/dists/buster/InRelease The following signatures were invalid: EXPKEYSIG 3F01618A51312F3F GitLab B.V. (package repository signing key) <packages@gitlab.com>
W: Some index files failed to download. They have been ignored, or old ones used instead.
Выполните следующие команду, которая добавит новый ключ.
curl -s https://packages.gitlab.com/gpg.key | apt-key add -
После чего выполните:
apt-get update && apt-get upgrade