Centos 8 Failed to download metadata for repo AppStream

Tutorials thread
User avatar
serveroffer
Site Admin
Posts: 48
Joined: 2012 Jun 16, 18:31

Centos 8 Failed to download metadata for repo AppStream

Postby serveroffer » 2023 Feb 16, 03:34

If after command "yum update" on Centos 8 you see:

Code: Select all

CentOS-8 - AppStream 70 B/s | 38 B 00:00
Error: Failed to download metadata for repo 'AppStream': Cannot prepare internal mirrorlist: No URLs in mirrorlist


You can fix it by updating mirrorlist:

Code: Select all

sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*

Return to “Tutorials”

Who is online

Users browsing this forum: No registered users and 4 guests