pcchen / scopion

Scopion cluster
2 stars 0 forks source link

CentOS Linux 8 had reached the End Of Life (EOL) #3

Closed pcchen closed 2 years ago

pcchen commented 2 years ago

Because CentOS Linux 8 had reached the End Of Life (EOL), when you use yum to install new packages, error likes this will appear

CentOS Linux 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
pcchen commented 2 years ago

https://techglimpse.com/failed-metadata-repo-appstream-centos-8/

pcchen commented 2 years ago

Following commands seem to fix the issue.

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-*