
نوشته اصلی توسط
dreamyeye
ممنون از راهنمایی شما. بنده این دوتا رو غیر فعال کردم اما وقتی دستور Yam میدم : خصوصا دستور آپدیت بازم پیغام ارور میده
کد:
[root@server ~]# yum -y update
Loaded plugins: fastestmirror, security
Setting up Update Process
Loading mirror speeds from cached hostfile
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/x86_64/$releasever/bas e/mirrorlist.txt
Error: Cannot find a valid baseurl for repo: base
[root@server ~]#
ورژن centos چنده؟
اگر ورژن 5 هست دیگه ساپورت نداره و باید کارهای زیر و انجام بدید
CentOS-5 reached end-of-life on March 31, 2017. This means that no new updates will be released by Red Hat. The current 5.11 tree you seek has been moved to vault.centos.org.
To obtain access to the 5.11 branch, edit /etc/yum.repos.d/CentOS-Base.repo and comment out the mirrorlist directives. Furthermore, in each enabled section add
baseurl=http://vault.centos.org/5.11/os/$basearch
or
baseurl=http://vault.centos.org/5.11/updates/$basearch
, appropriately. For example, for a base repo that looks like:
کد:
[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
..change to:
کد:
[base]
name=CentOS-$releasever - Base
# mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
baseurl=http://vault.centos.org/5.11/os/$basearch
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
منبع:
https://unix.stackexchange.com/quest...-on-centos-5-6