

Fix: "Error: Failed to download metadata for repo 'appstream'" (CentOS...
source link: https://haydenjames.io/fix-error-failed-to-download-metadata-for-repo-appstream-centos-8/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Previously, we looked at What CentOS alternative distro should you choose? That article was posted before End of Life (EOL) for CentOS 8 – December 31st, 2021. CentOS 8 will NOT automatically migrate to the next version (CentOS Stream 8). There will be no more updates to CentOS 8.
Error: Failed to download metadata for repo ‘appstream’
If you still manage system’s running CentOS 8 and you attempt to update packages using dnf update
or yum update
, you will encounter the following error:
Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist
Solution: Migrate to CentOS Stream 8 or an alternative distro
Now that CentOS has shifted to Stream – a rolling-release Linux distribution, midstream between the upstream development in Fedora and the downstream development for RHEL – many users are moving to CentOS alternatives. Others have decided to stick with CentOS by migrating to CentOS Stream 8. Both of these choices will resolve not being able to update CentOS 8.
To migrate from CentOS 8 to CentOS Stream 8, run the following commands:
dnf --disablerepo '*' --enablerepo=extras swap centos-linux-repos centos-stream-repos
dnf distro-sync
Migrating to alternative distros is usually just as simple:
For example, follow this guide to migrate from CentOS 8 or CentOS Stream 8 to Rocky Linux. Also, see this full list of CentOS 8 alternatives.
Recommend
-
157
spotDL The fastest, easiest, and most...
-
12
6 Ways to Fix the “Download Failed Network Error” on Chrome By Modisha Tladi Published 23 hours ago...
-
7
TikTok Scraper & Downloader Scrape and download useful information from TikTok. No login or password are required This is not an official API support and etc. This is just a scraper that is using TikTok Web API to...
-
9
N1 docker ubuntu 容器解决 Some index files failed to download. They have been ignored, or old ones used instead 问题 n1 的 docker,一个 ubuntu 容器在 root 用户下执行 apt-get update
-
5
Groovy Grape: Troubleshooting Failed Download April 2, 2012 If you use the Grape's
-
4
-
11
How to Fix Elden Ring's "Failed to Join Session" Error on Windows By Aman Kumar Published 5 hours ago Elden Ring...
-
7
How To Fix The Netflix Download Failed Error
-
12
Odin failed to flash lk-verified.img, now cant interact with Download Mode
-
5
Mastodon and Matrix link in your AppStream fileBackQuick reminder, that you can include a Mastodon or Matrix link to your AppStream file and that t...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK