les dépôts Ubuntu nécessite une clé publique pour certifié son origine.

Voici la commande a exécuter:

apt-key adv --recv-keys --keyserver keyserver.ubuntu.com <la clé du depot>

voici un cas d'exemple concernant le depot officiel de Gitlab:

après un apt update j'avais ce message d'erreur:

root@gitlab:~# apt update
...
Err:3 https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu focal InRelease                     
  The following signatures were invalid: EXPKEYSIG 3F01618A51312F3F GitLab B.V. (package repository signing key) <packages@gitlab.com>
Fetched 5434 kB in 2s (2626 kB/s)
Reading package lists... Done
Building dependency tree       
Reading state information... Done
36 packages can be upgraded. Run 'apt list --upgradable' to see them.
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/ubuntu focal 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/ubuntu/dists/focal/InRelease  The following signatures were invalid: EXPKEYSIG 3F01618A51312F3F GitLab B.V. (package repository signing key) <packages@gitlab.com>

la solution était d'exécuter la commande placé plus haut avec la clé mentionné dans le message d'erreur : 3F01618A51312F3F

apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 3F01618A51312F3F

Next Post Previous Post