Администрирование
Ошибка: Error: Cannot find a valid baseurl for repo
Если возникает ошибка на centos 5 вида
Loaded plugins: changelog, fastestmirror 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/base/mirrorlist.txt Error: Cannot find a valid baseurl for repo: base
То лечится это так:
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 echo "http://vault.centos.org/5.11/addons/x86_64/" > /var/cache/yum/addons/mirrorlist.txt