بعد از تاریخ 30 نوامبر سال 2020 رسما پشتیبانی از نسخه 6 سنت او اس انجام نمی گیرید و آپدیت نمی شود
برای اینکه بتوانید از این نسخه استفاده کنید باید یک سری تغییرات در یکی از فایل های لینوکس انجام گیرد تا به صورت غیر مستقیم بتواند هم آپدیت شود و هم پکیج های لازم نصب شود
CentOS 6 became EOL on the 30th November, 3 days ago. And all the repos have been archive to https://vault.centos.org/.
I have just edited my /etc/yum.repos.d/CentOS-Base.repo file to the below:
# 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.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[base]
name=CentOS-$releasever - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
baseurl=https://vault.centos.org/6.10/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
#released updates
[updates]
name=CentOS-$releasever - Updates
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
baseurl=https://vault.centos.org/6.10/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
baseurl=https://vault.centos.org/6.10/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
So while I will have no more security updates for CentOS 6, but also no more errors.
جدیدا مشاهده شده که بعد از این دستورات نیز ارورهای اس اس ال مشاهده می شود
برای حل این مشکل از دستورات زیر باید استفاده شود
The problem is because the ca-certificate package is outdated on your system. To correct this problem :
wget https://vault.centos.org/6.10/updates/x86_64/Packages/ca-certificates-2020.2.41-65.1.el6_10.noarch.rpm --no-check-certificate
rpm -iU ca-certificates-2020.2.41-65.1.el6_10.noarch.rpm
Please keep in mind that CentOS 6 is no longer in production, and due to the changing landscape of security certificates, there is no guarantee this fix will work forever.
در صورتی که موارد بالا مشکل شما را حل نکرد از آموزش جدید زیر استفاده کنید
https://pulseserver.net/client/knowledgebase/129/%D8%A2%D9%BE%D8%AF%DB%8C%D8%AA-centos-6-%D8%A8%D9%87-%D8%A2%D8%AE%D8%B1%DB%8C%D9%86-%D9%86%D8%B3%D8%AE%D9%87-%D9%85%D9%88%D8%AC%D9%88%D8%AF-How-to-fix-yum-after-CentOS-6-went-EOL.html