20+ Dedicated Server Configurations Available for Instant Provisioning

English

Home

Blog

How To Fix Failed to Download Metadata f...

How To Fix Failed to Download Metadata for Repo ‘AppStream’ on CentOS 8

How To Fix Failed to Download Metadata for Repo ‘AppStream’ on CentOS 8

NetShop ISP

NetShop ISP · Blog Author

Aug 23, 2022 · Technical Tutorials

The error message “Failed to Download Metadata for Repo ‘AppStream'” appears on CentOS 8 servers and you have probably encountered it if you tried to update the system (yum update).

[root@netshop-centos8-srv ~]# yum update
CentOS-8 - AppStream 110 B/s | 38 B 00:00
Error: Failed to download metadata for repo 'AppStream': Cannot prepare internal mirrorlist: No URLs in mirrorlist

In this tutorial we are going to show you how to fix this error and continue normally with updating your CentOS 8 server.

Step 1 – Go to /etc/yum.repos.d/ directory

Execute the following command in bold:

[root@netshop-centos8-srv ~]# cd /etc/yum.repos.d/

Step 2 – Run the following sed commands

[root@netshop-centos8-srv ~]# sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*


[root@netshop-centos8-srv ~]# sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*

Step 3 – Now run Yum Update

[root@netshop-centos8-srv ~]# yum update -y

That’s it!

Press Releases
89

Free VPS Trial

No Credit Card Required.

Recent Posts

XConnect: Ultra‑Low Latency Connectivity Now Delivered Globally

XConnect: Ultra‑Low Latency Connectivity Now Delivered Globally

06 August, 2025

Server Backups & Disaster Recovery: A Must-Have for Compliance and Business Continuity

Server Backups & Disaster Recovery: A Must-Have for Compliance and Business Continuity

30 July, 2025

How to Fix Let’s Encrypt SSL After Hostname Change in cPanel/WHM

How to Fix Let’s Encrypt SSL After Hostname Change in cPanel/WHM

21 July, 2025

Troubleshooting Large Redo Log Files in Zimbra

Troubleshooting Large Redo Log Files in Zimbra

07 July, 2025

How To Configure Network Bonding in Ubuntu 24.04 and Debian 12

How To Configure Network Bonding in Ubuntu 24.04 and Debian 12

30 June, 2025

#letushostyou

Award Winning Hosting Provider established in 2004.

120 Faneromenis Avenue, Imperial Tower, 2nd Floor, Larnaca 6031, Cyprus

Products

Bare Metal Servers

Customized Servers

Virtual / Cloud Servers

Forex VPS

Storage VPS

cPanel Web Hosting

Reseller Web Hosting

Colocation

Addons

Premium DNS

Email Hosting

Cloud Backup

DDoS Protection

Licenses

SSL Certificates

Domain Names

Premium SLAs

About Us

Data Center Locations

Looking Glass

Our Company

Contact Us

Careers in Cyprus

Become a Partner

Awards

Certifications

© 2025 S.S. NetShop Internet Services Ltd. All rights reserved.  Terms & Conditions  |  Privacy Policy
CY Reg. Number: HE 217340 | EU VAT Number: CY10217340J

Visa
Mastercard
PayPal
Bitcoin
Tether
Ethereum
Litecoin
Wise
Revolut
Wire Transfer