Назад | Перейти на главную страницу

centos yum проблемы

Я действительно новичок в использовании Linux, только что отформатировал свой centos 5.2 vps и пытаюсь установить ссылки с помощью команды yum install links. Но отображается следующая ошибка:

[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-адресов, чтобы увидеть, существуют они или нет, заключается в том, что для них требуется перенаправление с ... / 5.2 / .. на просто ../5/. Это обычное дело, которое нужно менять? и как я мог это изменить?

Вот мой CentOS-Base.repo http://pastebin.com/m67c1a022

Для меня это была проблема с кешем ...

yum clean all

yum update

и после этого он должен работать.

Текущая версия - 5.3, и рекомендуется обновить ее до нее.

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 для проверки (больше не используйте ее), но я считаю, что строка зеркального списка была изменена, она должна содержать переменную для версии, а не фактическое число, как в закомментированном вариант baseurl.

Замените 5.2 в строках зеркального списка, например:

mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates

После этого вы сможете yum upgrade к следующей версии. Это то, что система должна делать по умолчанию.

Вы можете выполнить обновление, используя следующую ссылку, но я чувствую, что проблема с вашим /etc/yum.repos.d/####.repo файл. Вы можете заменить это и попробовать еще раз ..

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-сервер, либо на ваш основной шлюз, либо на что-то вроде IP-адреса OpenDNS. Если вы можете попасть на сайт вне своей сети, тогда ... Попробуйте выполнить команду: yum clean all

Раздражающая проблема ...