# Errors during downloading metadata for repository 'appstream':

**URL:** https://forums.rockylinux.org/t/errors-during-downloading-metadata-for-repository-appstream/8546
**Category:** Rocky Linux Help & Support
**Created:** [January 13, 2023, 12:15pm UTC](https://forums.rockylinux.org/t/errors-during-downloading-metadata-for-repository-appstream/8546 "2023-01-13T12:15:31Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![pikeee](https://avatars.discourse-cdn.com/v4/letter/p/3d9bf3/32.png) [@pikeee](https://forums.rockylinux.org/u/pikeee)
#### Post date: [January 13, 2023, 12:15pm UTC](https://forums.rockylinux.org/t/errors-during-downloading-metadata-for-repository-appstream/8546/1 "2023-01-13T12:15:32Z")

</div>

When I tried to run **dnf update** or **yum update** commands on Rocky Linux 8.6 I got this errormessage: “Errors during downloading metadata for repository ‘appstream’: Curl error…”  
or  
“Failed to download metadata for repo ‘appstream’”

I tried to run **dnf clean all** but the error retained.

I found this article for similar error in CentOS:  
[https://techglimpse.com/failed-metadata-repo-appstream-centos-8/](https://techglimpse.com/failed-metadata-repo-appstream-centos-8/)

I tried to adopt this solution and changed the link to Rocky repo.

**Finally I used this solution below and it worked for me:**

```auto
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/Rocky-*

```

```auto

sed -i 's|#baseurl=http://dl.rockylinux.org/$contentdir|baseurl=http://dl.rockylinux.org/vault/rocky|g' /etc/yum.repos.d/Rocky-*

```

---

<div class="post-metadata">

### Author: ![Ritov](https://avatars.discourse-cdn.com/v4/letter/r/3ec8ea/32.png) [@Ritov](https://forums.rockylinux.org/u/Ritov)
#### Post date: [January 13, 2023, 1:34pm UTC](https://forums.rockylinux.org/t/errors-during-downloading-metadata-for-repository-appstream/8546/2 "2023-01-13T13:34:09Z")

</div>

The mirror that is close to you may have had some issues. Its better to revert your change to not add load to the primary servers. The mirrorlist is distributing the load for that reason.

In such cases you can do `dnf clean all; dnf update` or try it again a bit later in the day …

---

<div class="post-metadata">

### Author: ![RL1000](https://avatars.discourse-cdn.com/v4/letter/r/ec9cab/32.png) [@RL1000](https://forums.rockylinux.org/u/RL1000)
#### Post date: [January 13, 2023, 3:39pm UTC](https://forums.rockylinux.org/t/errors-during-downloading-metadata-for-repository-appstream/8546/3 "2023-01-13T15:39:57Z")

</div>

Just to add to what Ritov has already said, I have had the same errors in the past, and just waited till later in day and then things worked. Most likely a temporary connection or server issue.

---

<div class="post-metadata">

### Author: ![brian](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/brian/32/5777_2.png) [@brian](https://forums.rockylinux.org/u/brian)
#### Post date: [August 25, 2023, 3:28am UTC](https://forums.rockylinux.org/t/errors-during-downloading-metadata-for-repository-appstream/8546/4 "2023-08-25T03:28:34Z")

</div>


