AWARD WINNER

We've been recognized as "Best Hosting Provider of the Year"

Read More
  • +357 2425 0808
  • Login
  • 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
65

Free VPS Trial

No Credit Card Required.

Recent Posts

NetShop ISP EMEA Tour Continues: Forex Expo 2023 in Dubai

NetShop ISP EMEA Tour Continues: Forex Expo 2023 in Dubai

25 September, 2023

How To Resolve cPanel Error “Cannot create account because it conflicts with an unmanaged MySQL database user”

How To Resolve cPanel Error “Cannot create account because it conflicts with an unmanaged MySQL database user”

13 September, 2023

NetShop ISP Triumphs as Best Hosting Provider of the Year at SiGMA CIS/Balkans Awards 2023

NetShop ISP Triumphs as Best Hosting Provider of the Year at SiGMA CIS/Balkans Awards 2023

08 September, 2023

How To Install MySQL 8.x on Windows Server 2022

How To Install MySQL 8.x on Windows Server 2022

04 September, 2023

NetShop ISP Attend iFX EXPO International 2023 in Cyprus

NetShop ISP Attend iFX EXPO International 2023 in Cyprus

28 August, 2023

#letushostyou

Award Winning Hosting Provider established in 2004.

Best iGaming Service ProviderISO Certified

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

© 2023 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