Repo Centos 6.x 2022 (work) dimana sudah tutup usia sejak November 2020 dan semenjak itu maka repositori centos 6 berpindah alamat ke https://vault.centos.org/.
Jika anda melakukan update maka akan keluar error seperti ini

YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
Eg. Invalid release/repo/arch combination/
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/extras/mirrorlist.txt

atau anda mendapati error seperti ini

Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
http://vault.centos.org/6.10/os/x86_64/repodata/repomd.xml: [Errno 14] Peer cert cannot be verified or peer 

cert invalid
Trying other mirror.
It was impossible to connect to the CentOS servers.
This could mean a connectivity issue in your environment, such as the requirement to configure a proxy,
or a transparent proxy that tampers with TLS security, or an incorrect system clock.
You can try to solve this issue by using the instructions on https://wiki.centos.org/yum-errors
If above article doesn't help to resolve this issue please use https://bugs.centos.org/.

Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try 

again

Maka solusinya adalah

nano /etc/yum.conf

setelah [main] tambahkan

sslverify=false

Ubah Base Repo

nano /etc/yum.repos.d/CentOS-Base.repo

 

[base]
name=CentOS-$releasever - Base
baseurl=https://vault.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#released updates
[updates]
name=CentOS-$releasever - Updates
baseurl=https://vault.centos.org/centos/$releasever/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
baseurl=https://vault.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
baseurl=https://vault.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
baseurl=https://vault.centos.org/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

Simpan file tersebut dan selanjutnya lakukan yum update.

yum clean all
yum makecache

Demikian sekedar catatan repositori centos 6 dan semoga bermanfaat.

Konsultasi via WA di 0817-0334-1186
Posting Terkait :
Merubah Repositori Centos 6.x ke Mirror Tercepat & Memblokir Mirror Terlambat

Bagaimana cara merubah repositori centos ke mirror tercepat atau memblokir mirror yang anda ketahui lambat? Hal ini bisa jadi akan Read more

Sharing is Caring.!

Leave a Reply

  Subscribe  
Notify of