Centos 6.x Yum Update Repo Cannot find valid baseurl no valid mirrors

Centos 6.x 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

Adapun untuk Base Repo bisa anda seperti berikut ini :

nano /etc/yum.repos.d/CentOS-Base.repo
[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

Simpan file tersebut dan selanjutnya lakukan yum update.

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.!

Feed / RSS

Dapatkan artikel terbaru terkirim ke email anda. Klik disini Subscribe in a reader

Leave a Reply

  Subscribe  
Notify of