Ubuntu Gitlab package broken?

Hi,

I’m trying to update Gitlab on Ubuntu server 18.04 but it seems there’s something wrong with the package:

Hit:1 Index of /ubuntu xenial InRelease
Hit:2 Index of /ubuntu xenial-updates InRelease
Hit:3 Index of /ubuntu xenial-backports InRelease
Hit:4 Index of /ubuntu xenial-security InRelease
Get:5 https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu xenial InRelease [23.3 kB]
Err:5 https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu xenial InRelease
The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 3F01618A51312F3F
Fetched 23.3 kB in 1s (11.9 kB/s)
Reading package lists… Done
Building dependency tree
Reading state information… Done
8 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 xenial 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/ubuntu/dists/xenial/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.
Reading package lists… Done

Any fix?

The GPG keys rotated recently, which would explain why your update is failing.
Please have a look at the The GPG key used to sign GitLab package repositories’ metadata is changing blog post which gives a full description, plus instructions on how to get a new key.
Once you have the new key the update should be successful.

1 Like

Ah ok that makes sense. Thanks for the info and the blog post! I will get a new key :slight_smile: