# DNF throws "Failed to download metadata for repo" after fresh Rocky Linux 9 install

**URL:** <https://forums.rockylinux.org/t/dnf-throws-failed-to-download-metadata-for-repo-after-fresh-rocky-linux-9-install/18909>\
**Category:** Rocky Linux Help & Support\
**Tags:** rocky-linux-9\
**Created:** [June 23, 2025, 12:28pm UTC](https://forums.rockylinux.org/t/dnf-throws-failed-to-download-metadata-for-repo-after-fresh-rocky-linux-9-install/18909 "2025-06-23T12:28:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hogedel180](https://avatars.discourse-cdn.com/v4/letter/h/ea5d25/32.png) [@hogedel180](https://forums.rockylinux.org/u/hogedel180)\
**Post date:** [June 23, 2025, 12:28pm UTC](https://forums.rockylinux.org/t/dnf-throws-failed-to-download-metadata-for-repo-after-fresh-rocky-linux-9-install/18909/1 "2025-06-23T12:28:24Z")

</div>

Hi all,  
Recently I joined [excel dublin](https://www.igmguru.com/data-science-bi/excel-course-in-dublin) and I just finished installing Rocky Linux 9 on a new server, but when I try to run `dnf update` or install any package, I get this error:

```auto
Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist

```

I’ve already checked my internet connection (working fine) and tried clearing the DNF cache using dnf clean all, but the error still shows up. I didn’t modify any repo files manually.

Is this a known issue or something I might’ve missed during installation? Would really appreciate some help getting package updates working.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![discourse\_ai\_spam](https://avatars.discourse-cdn.com/v4/letter/d/c68b51/32.png) [@discourse\_ai\_spam](https://forums.rockylinux.org/u/discourse_ai_spam)\
**Post date:** [June 23, 2025, 12:28pm UTC](https://forums.rockylinux.org/t/dnf-throws-failed-to-download-metadata-for-repo-after-fresh-rocky-linux-9-install/18909/2 "2025-06-23T12:28:51Z")

</div>



---

<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:** [June 23, 2025, 1:05pm UTC](https://forums.rockylinux.org/t/dnf-throws-failed-to-download-metadata-for-repo-after-fresh-rocky-linux-9-install/18909/3 "2025-06-23T13:05:34Z")

</div>



---

<div class="post-metadata">

**Author:** ![gerry666uk](https://avatars.discourse-cdn.com/v4/letter/g/dbc845/32.png) [@gerry666uk](https://forums.rockylinux.org/u/gerry666uk)\
**Post date:** [June 23, 2025, 6:41pm UTC](https://forums.rockylinux.org/t/dnf-throws-failed-to-download-metadata-for-repo-after-fresh-rocky-linux-9-install/18909/4 "2025-06-23T18:41:04Z")

</div>

As Root.  
`dnf config-manager --dump appstream`

---

<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 22, 2025, 6:41pm UTC](https://forums.rockylinux.org/t/dnf-throws-failed-to-download-metadata-for-repo-after-fresh-rocky-linux-9-install/18909/5 "2025-08-22T18:41:54Z")

</div>

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