# the public key is not available: NO\_PUBKEY

**URL:** <https://community.netdata.cloud/t/the-public-key-is-not-available-no-pubkey/3827>\
**Category:** Help\
**Created:** [February 4, 2023, 7:16pm UTC](https://community.netdata.cloud/t/the-public-key-is-not-available-no-pubkey/3827 "2023-02-04T19:16:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mimirTech](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/mimirtech/32/2531_2.png) [@mimirTech](https://community.netdata.cloud/u/mimirTech)\
**Post date:** [February 4, 2023, 7:16pm UTC](https://community.netdata.cloud/t/the-public-key-is-not-available-no-pubkey/3827/1 "2023-02-04T19:16:04Z")

</div>

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://packagecloud.io/netdata/netdata-repoconfig/ubuntu](https://packagecloud.io/netdata/netdata-repoconfig/ubuntu) jammy InRelease: The following signatures couldn’t be verified because the public key is not available: NO\_PUBKEY 53BC0238C6ADB1FD  
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: [https://packagecloud.io/netdata/netdata-edge/ubuntu](https://packagecloud.io/netdata/netdata-edge/ubuntu) jammy InRelease: The following signatures couldn’t be verified because the public key is not available: NO\_PUBKEY 906E08CB997741FC

Attempted to apt-get update && upgrade, but was met with this. I also has netdata on several other servers and it only happened to one. Not sure how the GPG key got messed up, but any help would be appricated thanks in advance.

---

<div class="post-metadata">

**Author:** ![mimirTech](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/mimirtech/32/2531_2.png) [@mimirTech](https://community.netdata.cloud/u/mimirTech)\
**Post date:** [February 4, 2023, 7:18pm UTC](https://community.netdata.cloud/t/the-public-key-is-not-available-no-pubkey/3827/2 "2023-02-04T19:18:53Z")

</div>

I also just noticed that my other servers have different repos and this on has [packagecloud.io](http://packagecloud.io)…?

Hit:7 [Index of /repos/edge/ubuntu/](http://repo.netdata.cloud/repos/edge/ubuntu) jammy/ Release  
Hit:8 [Index of /repos/repoconfig/ubuntu/](http://repo.netdata.cloud/repos/repoconfig/ubuntu) jammy/ Release

---

<div class="post-metadata">

**Author:** ![Austin\_Hemmelgarn](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/austin_hemmelgarn/32/4495_2.png) [@Austin\_Hemmelgarn](https://community.netdata.cloud/u/Austin_Hemmelgarn)\
**Post date:** [February 6, 2023, 5:34pm UTC](https://community.netdata.cloud/t/the-public-key-is-not-available-no-pubkey/3827/3 "2023-02-06T17:34:19Z")

</div>

I’m not sure what’s going on with PackageCloud in this situation, but we’ve recently switched our primary hosting of native packages to self-hosted infrastructure at [repo.netdata.cloud](https://repo.netdata.cloud/repos) (more details, including info about manual setup, can be found [here](https://github.com/netdata/netdata/blob/master/packaging/installer/methods/packages.md)). Most systems should have been switched over automatically as a result of either `netdata-repo` or `netdata-repo-edge` upgrading (and this is likely why you’re seeing different behavior for your other servers, they likely got switched automatically).

It looks like the affected system was already using the `netdata-repo-edge` package, but something went wrong during an upgrade so it did not get switched over automatically. You can most likely fix this (and get rid of the PackageCloud issue) by manually fetching the correct repository configuration package from [the repoconfig repository at repo.netdata.cloud](https://repo.netdata.cloud/repos/repoconfig/) (for nightly builds on Ubuntu 22.04, which appears to be what you were using previously, you would want [https://repo.netdata.cloud/repos/repoconfig/ubuntu/jammy/netdata-repo-edge\_2-1+ubuntu22.04\_all.deb](https://repo.netdata.cloud/repos/repoconfig/ubuntu/jammy/netdata-repo-edge_2-1+ubuntu22.04_all.deb)), and then manually installing the package using APT (you can pass the downloaded package file as an argument to `apt install` and it should just work).

---

<div class="post-metadata">

**Author:** ![sHORTYWZ](https://avatars.discourse-cdn.com/v4/letter/s/6f9a4e/32.png) [@sHORTYWZ](https://community.netdata.cloud/u/sHORTYWZ)\
**Post date:** [February 11, 2023, 2:34am UTC](https://community.netdata.cloud/t/the-public-key-is-not-available-no-pubkey/3827/4 "2023-02-11T02:34:16Z")

</div>

FYI, I’m getting a similar error on the netdata.cloud repo, Ubuntu 22.04.01

```auto

W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://repo.netdata.cloud/repos/edge/ubuntu jammy/ Release: The following signatures were invalid: BADSIG F9177B5265F56346 Netdatabot <bot@netdata.cloud>
W: Failed to fetch http://repo.netdata.cloud/repos/edge/ubuntu/jammy/Release.gpg The following signatures were invalid: BADSIG F9177B5265F56346 Netdatabot <bot@netdata.cloud>
W: Some index files failed to download. They have been ignored, or old ones used instead.

```

I was able to resolve this by re-running the kickstarter script.
