Website Refresh Now Live — Explore What's New

English

Home

Blog

How To Fix Error Failed to download meta...

How To Fix Error Failed to download metadata for repo in CentOS 8

How To Fix Error Failed to download metadata for repo in CentOS 8

NetShop ISP

NetShop ISP · Blog Author

Mar 23, 2023 · Technical Tutorials

The CentOS 8 distribution has been on End of Life (EOL) status since December 31st, 2021. This means that servers using CentOS 8 Operating system are no longer receiving development resources from the official CentOS project.

A common error that system admins encounter when trying to install a new package or update CentOS 8 is the following:

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

To resolve this error you need to change the mirrors to vault.centos.org. Follow the next steps for the list of commands you need to execute on your CentOS 8 server to fix this.

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

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

Step 2 – Execute the ‘sed’ command. Sed is a popular linux command for finding & replacing strings in a file

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

and then this command:

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

Step 3 – You are all set, now try updating your system with the following command:

[root@centos8-server ~]# yum update -y

If all went well, the last command should have not returned any errors.

centos
how to
linux
tutorials
Press Releases
94
Industries
117

Free VPS Trial

No Credit Card Required.

Start Your VPS Hosting Free Trial

Recent Posts

Why Dedicated Servers Remain the Backbone of High-Performance Infrastructure in 2026

Why Dedicated Servers Remain the Backbone of High-Performance Infrastructure in 2026

02 February, 2026

Why iGaming Operators Need Specialized Hosting in 2026

Why iGaming Operators Need Specialized Hosting in 2026

20 January, 2026

How to Improve MT4/MT5 Expert Advisor Stability With Proper VPS Configuration

How to Improve MT4/MT5 Expert Advisor Stability With Proper VPS Configuration

13 January, 2026

NetShop ISP in 2025: Year In Review

NetShop ISP in 2025: Year In Review

30 December, 2025

NetShop ISP Website Refresh Goes Live, Featuring New SaaS & AI Hosting Pages

NetShop ISP Website Refresh Goes Live, Featuring New SaaS & AI Hosting Pages

18 December, 2025

#letushostyou

Award Winning Hosting Provider established in 2004.

Best iGaming Service Provider

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

Products

Bare Metal Servers

Customized Servers

Virtual / Cloud Servers

Forex VPS

cPanel Web Hosting

Reseller Web Hosting

Colocation

Low-latency Connectivitynew

by XConnect

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

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