Debian package repository key is expired
apt returns:
Failed to update apt cache: W:Updating from such a repository can''t be done securely, and is therefore disabled by default.,
W:See apt-secure(8) manpage for repository creation and user configuration details.,
W: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>,
E:The repository ''https://packages.gitlab.com/gitlab/gitlab-ce/debian buster InRelease'' is not signed.
It can be quickly verified:
$ curl -s https://packages.gitlab.com/gpg.key | LANG=C gpg
gpg: WARNING: no command supplied. Trying to guess what you mean ...
pub rsa4096 2020-03-02 [SC] [expired: 2022-03-02]
F6403F6544A38863DAA0B6E03F01618A51312F3F
uid GitLab B.V. (package repository signing key) <packages@gitlab.com>
sub rsa4096 2020-03-02 [E] [expired: 2022-03-02]
Edited by Mathieu Parent