Golfreeze.packetlove.com: Life style of Golfreeze Canon400D Family kammtan.com Jazz Freebsd Unix Linux System Admin guitar Music

All about unix linux freebsd and FAQ for Packetlove.com Web hosting , Mail hosting , VoIP + IP PBX server => Os kernel การปรับแต่ง เพิ่มเติม ลงโปรแกรม บน OS และ ControlPanel Directadmin,Cloud server => Topic started by: golfreeze on กันยายน 14, 2017, 05:45:50 PM

Title: แก้ไข Centos 5.x End of life YumRepo Error: All mirror URLs are not using ftp
Post by: golfreeze on กันยายน 14, 2017, 05:45:50 PM
#yum update
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror, security
Determining fastest mirrors
YumRepo Error: All mirror URLs are not using ftp, http(s) or file.
 Eg. Invalid release/
removing mirrorlist with no valid mirrors: /var/cache/yum/extras/mirrorlist.txt
Error: Cannot find a valid baseurl for repo: extras

เกิดจาก mirror ของ CentOS 5.x หมดอายุไปครับ ให้ทำการ echo mirror ด้านล่างลงไปนะครับ
เพื่อให้ทำการ Load mirror ที่ยังเปิดให้รับข้อมูล repo ของ CentOS 5.x อยู่

# echo "http://vault.centos.org/5.11/os/x86_64/" > /var/cache/yum/base/mirrorlist.txt
# echo "http://vault.centos.org/5.11/extras/x86_64/" > /var/cache/yum/extras/mirrorlist.txt
# echo "http://vault.centos.org/5.11/updates/x86_64/" > /var/cache/yum/updates/mirrorlist.txt

หลังจากนั้นทำการสั่ง yum update อีกรอบก็จะแก้ไขปัญหาได้ครับผม : )

#yum update