База знаний: Linux Server
На CentOS 5 получаю ошибку "YumRepo Error: All mirror URLs are not using ftp, http[s] or file."
Автор Алексей | HiTex.BY на 29 сентября 2017 11:02
|
|
Если на CentOS 5 при выполнении операций с yum вы получаете ошибку вида: 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/base/mirrorlist.txt Error: Cannot find a valid baseurl for repo: base
This directory (and version of CentOS) is depreciated. CentOS-5 is now past EOL You can get the last released version of centos 5.11 here: http://vault.centos.org/5.11/ Please NOTE: this is not being maintained for security since moving to Vault. It will have security issues, you should upgrade to a new version instead.
Что же делать, если вам нужно дальше работать с CentOS 5? Всё просто, нужно выполнить три нехитрых команды: # echo "http://vault.centos.org/5.11/os/i386/" > /var/cache/yum/base/mirrorlist.txt # echo "http://vault.centos.org/5.11/extras/i386/" > /var/cache/yum/extras/mirrorlist.txt # echo "http://vault.centos.org/5.11/updates/i386/" > /var/cache/yum/updates/mirrorlist.txt
| |
|
Комментарии (0)