Last active
April 2, 2022 06:09
-
-
Save DevSecOpsGuy/cffd69321e56ae1fa4f2bc88c3487d3e to your computer and use it in GitHub Desktop.
Fix Failed to download metadata for CentOS Linux 8 End Of Life (EOL) repo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@localhost ~]# yum update | |
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 | |
cd /etc/yum.repos.d/ | |
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-* | |
yum clean all | |
yum repolist | |
yum update -y |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment