# Dnf gets 404 for RPM-GPG-KEY-Rocky-SIG-Cloud

**URL:** <https://forums.rockylinux.org/t/dnf-gets-404-for-rpm-gpg-key-rocky-sig-cloud/18743>\
**Category:** Rocky Linux Help & Support\
**Tags:** rocky-linux-9\
**Created:** [June 11, 2025, 12:27am UTC](https://forums.rockylinux.org/t/dnf-gets-404-for-rpm-gpg-key-rocky-sig-cloud/18743 "2025-06-11T00:27:59Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![bpappas](https://avatars.discourse-cdn.com/v4/letter/b/e68b1a/32.png) [@bpappas](https://forums.rockylinux.org/u/bpappas)\
**Post date:** [June 11, 2025, 12:27am UTC](https://forums.rockylinux.org/t/dnf-gets-404-for-rpm-gpg-key-rocky-sig-cloud/18743/1 "2025-06-11T00:27:59Z")

</div>

dnf fails to install some packages with the following error:  
Status code: 404 for [https://dl.rockylinux.org/pub/sig/9/cloud/x86\_64/cloud-kernel/RPM-GPG-KEY-Rocky-SIG-Cloud](https://dl.rockylinux.org/pub/sig/9/cloud/x86_64/cloud-kernel/RPM-GPG-KEY-Rocky-SIG-Cloud)

It does appear that this key is missing. That is the key specified in the stock `/etc/yum.repos.d/Rocky-CloudKernel.repo`. I’m using the most recent GCP optimized rocky 9.5 image.

---

<div class="post-metadata">

**Author:** ![pank](https://avatars.discourse-cdn.com/v4/letter/p/48db29/32.png) [@pank](https://forums.rockylinux.org/u/pank)\
**Post date:** [June 11, 2025, 7:14am UTC](https://forums.rockylinux.org/t/dnf-gets-404-for-rpm-gpg-key-rocky-sig-cloud/18743/2 "2025-06-11T07:14:17Z")

</div>

Workaround, install rocky-release-cloud and change pgpkey to local file.

```auto
dnf -y install rocky-release-cloud
sed -i 's|gpgkey=https://dl.rockylinux.org/pub/sig/9/cloud/x86_64/cloud-kernel|gpgkey=file:///etc/pki/rpm-gpg|' /etc/yum.repos.d/Rocky-CloudKernel.repo

```

---

<div class="post-metadata">

**Author:** ![label](https://avatars.discourse-cdn.com/v4/letter/l/c5a1d2/32.png) [@label](https://forums.rockylinux.org/u/label)\
**Post date:** [June 11, 2025, 9:36am UTC](https://forums.rockylinux.org/t/dnf-gets-404-for-rpm-gpg-key-rocky-sig-cloud/18743/3 "2025-06-11T09:36:37Z")

</div>

> [@bpappas](#):
>
> That is the key specified in the stock `/etc/yum.repos.d/Rocky-CloudKernel.repo`

That repo file does not appear to be managed by us nor any of our release packages. The provider of the image (I will assume google/GCE) doesn’t install rocky-release-cloud, which would provide the key and the correct repo files.

With that said, the GPG key is now there, so your dnf commands should now work.

---

<div class="post-metadata">

**Author:** ![bpappas](https://avatars.discourse-cdn.com/v4/letter/b/e68b1a/32.png) [@bpappas](https://forums.rockylinux.org/u/bpappas)\
**Post date:** [June 11, 2025, 2:25pm UTC](https://forums.rockylinux.org/t/dnf-gets-404-for-rpm-gpg-key-rocky-sig-cloud/18743/4 "2025-06-11T14:25:39Z")

</div>

There was no key in that dir, so changing the which one it points to in the .repo file, wouldn’t be of much use.

---

<div class="post-metadata">

**Author:** ![bpappas](https://avatars.discourse-cdn.com/v4/letter/b/e68b1a/32.png) [@bpappas](https://forums.rockylinux.org/u/bpappas)\
**Post date:** [June 11, 2025, 2:26pm UTC](https://forums.rockylinux.org/t/dnf-gets-404-for-rpm-gpg-key-rocky-sig-cloud/18743/5 "2025-06-11T14:26:54Z")

</div>

Thanks, I just noticed that the key is there now, as of this morning.

Weird that it was just 404’ing for 12+ hours.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/1X/91b7219eec10e30013422e4df76c1d898711a5d5.svg) [@system](https://forums.rockylinux.org/u/system)\
**Post date:** [August 10, 2025, 2:27pm UTC](https://forums.rockylinux.org/t/dnf-gets-404-for-rpm-gpg-key-rocky-sig-cloud/18743/6 "2025-08-10T14:27:00Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
