Hi ei-admin,
Please make sure that you do have internet connection.
Looks like CentOS 6 has reached End of Life (EOL) in November 30, 2020.
YUM might be attempting connect to deprecated repositories.
So, we need update deprecated repositories URL’s and point to the vault.
Resolution
Code: Select all
To fix this problem you edit /etc/yum.repos.d/CentOS-Base.repo and comment out mirrorlist and replace baseurl with:
baseurl=http://vault.centos.org/6.10/os/$basearch
1. Go to /etc/yum.repos.d/ directory:
2. Make copy of original file:
Code: Select all
# cp CentOS-Base.repo CentOS-Base.repo.old
3. Open and edit file with any text editor:
4. After editing it should looks like:
Code: Select all
[base]
name=CentOS-$releasever - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
baseurl=http://vault.centos.org/6.10/os/$basearch
[updates]
name=CentOS-$releasever - Updates
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra
baseurl=http://vault.centos.org/6.10/updates/$basearch/
[extras]
name=CentOS-$releasever - Extras
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras&infra=$infra
baseurl=http://vault.centos.org/6.10/extras/$basearch/
[centosplus]
name=CentOS-$releasever - Plus
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus&infra=$infra
baseurl=http://vault.centos.org/6.10/centosplus/$basearch/
5. Clean yum cache
6. Run again yum update command:
Also, please consider update your system from CentOS 6 to CentOS 7 or 8.
Best Regards,
Vinh