我真的很新,使用Linux,并刚刚格式化我的5.2的VPS,并试图通过使用命令YUM安装链接来安装链接。 但是会显示以下错误:
[root@inverses ~]# yum install links Loading "fastestmirror" plugin Loading mirror speeds from cached hostfile * lxlabsupdate: download.lxlabs.com * lxlabslxupdate: download.lxlabs.com * base: ftp.nluug.nl * updates: distrib-coffee.ipsl.jussieu.fr * addons: mirror.answerstolove.com * extras: distrib-coffee.ipsl.jussieu.fr http://ftp.nluug.nl/ftp/pub/os/Linux/distr/CentOS/5.2/os/i386/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found Trying other mirror. http://distrib-coffee.ipsl.jussieu.fr/pub/linux/centos/5.2/os/i386/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found Trying other mirror. http://mirror.ukhost4u.com/centos/5.2/os/i386/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found Trying other mirror. http://centosh2.centos.org/centos/5.2/os/i386/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found Trying other mirror. http://mirror.atrpms.net/centos/5.2/os/i386/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found Trying other mirror. http://centosf.centos.org/centos/5.2/os/i386/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found Trying other mirror. http://centoso3.centos.org/centos/5.2/os/i386/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found Trying other mirror. http://centosk.centos.org/centos/5.2/os/i386/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found Trying other mirror. http://centosv.centos.org/centos/5.2/os/i386/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found Trying other mirror. http://centosk3.centos.org/centos/5.2/os/i386/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found Trying other mirror. Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again
从我收集的一些URL后,我们收集,看看他们是否存在,是他们需要redirect从… / 5.2 / ..只是../5/这是一个常见的事情,必须改变? 我怎么能改变这个?
这是我的CentOS-Base.repo http://pastebin.com/m67c1a022
5.3是当前版本,build议您升级到该版本。
http://centosk3.centos.org/centos/5.2/readme
This directory (and version of CentOS) is depreciated. For normal users, you should use /5/ and not /5.2/ in your path. Please see this FAQ concerning the CentOS release scheme: http://www.centos.org/modules/smartfaq/faq.php?faqid=34 If you know what you are doing, and absolutely want to remain at the 5.2 level, go to http://vault.centos.org/ for packages.
您可以修改/etc/yum.repos.d/中的回购地点
从我的理解/ 5 /应该是最新的5.x版本的链接
编辑:刚刚看到您现在发布的回购文件。
[updates] name=CentOS-$releasever - Updates mirrorlist=http://mirrorlist.centos.org/?release=5.2&arch=$basearch&repo=updates #baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
我没有一个Centos机器来检查(不再使用它),但我相信那里的镜像列表行已被修改,它应该包含一个variables的版本,而不是一个实际的数字,就像在评论baseurl选项。
replace镜像列表行中的5.2,如:
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
完成之后,你应该能够yum upgrade到下一个版本。 这是系统默认应该做的事情。
对我来说这是一个caching问题…
yum clean all yum update
而且应该在那之后工作。
你可以升级使用以下的链接,但我觉得你的/etc/yum.repos.d/####.repo文件有问题。 你可以replace,再试一次
http://www.cyberciti.biz/tips/red-hat-enterprise-linux-5-4-released.html这是用于RHEL 5.4,但与centos相同的东西。
你可以wget http://serverfault.com (看起来像一个DNS问题)检查你的/etc/resolv.conf文件,并确保它指向您的DNS服务器,您的主要网关,或类似的OpenDNS IP 。 如果你可以击中你的networking网站然后…尝试命令:yum干净的一切
讨厌的问题…