GPG key di repository Linux digunakan untuk validasi paket-paket yand di download, tanpa GPG key yang dikenali oleh sistem anda, dalam hal ini apt (apt-get) akan menolak untuk mengambil data dari repository yang keynya tidak ditemukan.

Repository Gitlab Community Edition muncul warning

Err:4 https://packages.gitlab.com/gitlab/gitlab-ce/debian buster InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3F01618A51312F3F
Fetched 23.3 kB in 4s (5,753 B/s)
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.
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 couldn't be verified because the public key is not available: NO_PUBKEY 3F01618A51312F3F
W: Failed to fetch https://packages.gitlab.com/gitlab/gitlab-ce/debian/dists/buster/InRelease  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3F01618A51312F3F
W: Some index files failed to download. They have been ignored, or old ones used instead.

Cek key yang sudah terinstall di system anda

> apt-key list
/etc/apt/trusted.gpg
--------------------
pub   rsa4096 2015-04-17 [SC] [expires: 2020-04-15]
      1A4C 919D B987 D435 9396  38B9 1421 9A96 E15E 78F4
uid           [ unknown] GitLab B.V. (package repository signing key) <packages@gitlab.com>

Expired tanggal 15 April 2020, tetapi sudah direject oleh gitlab.

GPG key terbaru Gitlab bisa didownload di https://packages.gitlab.com/gpg.key, atau langsung dengan curl

curl https://packages.gitlab.com/gpg.key | sudo apt-key add

Coba cek update dengan apt, sudah tidak ada masalah lagi.

apt update
# output
...
Get:4 https://packages.gitlab.com/gitlab/gitlab-ce/debian buster InRelease [23.3 kB]
Get:5 https://packages.gitlab.com/gitlab/gitlab-ce/debian buster/main amd64 Packages [10.7 kB]
Fetched 34.0 kB in 4s (7,811 B/s)
Reading package lists... Done
Building dependency tree       
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.

Join the Conversation

1 Comment

Your email address will not be published. Required fields are marked *