Author Topic: centos 5.x mirrorlist end of life how to fixed  (Read 7294 times)

golfreeze

  • Administrator
  • Hero Member
  • *****
  • Posts: 2145
    • View Profile
    • นั่งสมาธิ สติปัฏฐานสี่ พาเที่ยววัด แนะนำวัด แจกcd ธรรมะฟรี
    • Email
centos 5.x mirrorlist end of life how to fixed
« on: สิงหาคม 16, 2018, 07:56:24 PM »
[root@cp lib64]# vi /etc/yum.repos.d/CentOS-
[root@cp lib64]# ls /var/cache/yum/extras/mirrorlist.txt
ls: /var/cache/yum/extras/mirrorlist.txt: No such file or directory
[root@cp lib64]# touch /var/cache/yum/extras/mirrorlist.txt
[root@cp lib64]# yum reinstall openssl
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror, security
Setting up Reinstall Process
Loading mirror speeds from cached hostfile
removing mirrorlist with no valid mirrors: /var/cache/yum/extras/mirrorlist.txt
Error: Cannot find a valid baseurl for repo: extras

####แก้ไขโดยทำการ echo เข้าไปที่ mirrorlist.txt ทั้ง3files
[root@cp lib64]# vi /var/cache/yum/extras/mi
[root@cp lib64]#
[root@cp lib64]# echo "http://vault.centos.org/5.11/os/x86_64/" > /var/cache/yum/base/mirrorlist.txt
[root@cp lib64]# echo "http://vault.centos.org/5.11/extras/x86_64/" > /var/cache/yum/extras/mirrorlist.txt
[root@cp lib64]# echo "http://vault.centos.org/5.11/updates/x86_64/" > /var/cache/yum/updates/mirrorlist.txt
[root@cp lib64]# yum reinstall openssl