The error is due to CentOS is already EOL and you need to update your repo so it points to the archived repo. You can do this by using the following sed command.
Once done, you should be able to do your yum update or dnf update.
The error is due to CentOS is already EOL and you need to update your repo so it points to the archived repo. You can do this by using the following sed command.
Once done, you should be able to do your yum update or dnf update.
[root@abc yum.repos.d]# ls CentOS-Base.repo CentOS-Debuginfo.repo CentOS-Media.repo
# CentOS-Base.repo # # The mirror system uses the connecting IP address of the client and the # update status of each mirror to pick mirrors that are updated to and # geographically close to the client. You should use this for CentOS updates # unless you are manually picking other mirrors. # # All debug packages from all the various CentOS-5 releases # are merged into a single repo, split by BaseArch # # Note: packages in the debuginfo repo are currently not signed # [debug] name=CentOS-6 - Debuginfo baseurl=http://debuginfo.centos.org/6/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-Debug-6 enabled=0
[root@abc yum.repos.d]# yum --enablerepo=debug install kernel-debuginfo-2.6.32-220.el6
[root@abc yum.repos.d]# yum --enablerepo=debug install kernel-debuginfo
Loaded plugins: fastestmirror, refresh-packagekit, security
Determining fastest mirrors
* base: mirror.rndc.or.id
* extras: kartolo.sby.datautama.net.id
* updates: buaya.klas.or.id
base | 3.7 kB 00:00
debug | 1.9 kB 00:00
debug/primary_db | 753 kB 00:19
extras | 3.5 kB 00:00
updates | 3.5 kB 00:00
updates/primary_db | 1.5 MB 00:34
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package kernel-debuginfo.x86_64 0:2.6.32-358.2.1.el6.centos.plus will be installed
--> Processing Dependency: kernel-debuginfo-common-x86_64 = 2.6.32-358.2.1.el6.centos.plus for package: kernel-debuginfo-2.6.32-358.2.1.el6.centos.plus.x86_64
--> Running transaction check
---> Package kernel-debuginfo-common-x86_64.x86_64 0:2.6.32-358.2.1.el6.centos.plus will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository
Size
================================================================================
Installing:
kernel-debuginfo x86_64 2.6.32-358.2.1.el6.centos.plus debug 249 M
Installing for dependencies:
kernel-debuginfo-common-x86_64
x86_64 2.6.32-358.2.1.el6.centos.plus debug 38 M
Transaction Summary
================================================================================
Install 2 Package(s)
Total download size: 287 M
Installed size: 1.6 G
Is this ok [y/N]: N