CentOS 6 is ending and after a yum update, if it gives the error:
# yum update
Loaded plugins: fastestmirror, refresh-packagekit, 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/repo/arch combination/
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/base/mirrorlist.txt
Error: Cannot find a valid baseurl for repo: base
You can fix it with:
echo "https://vault.centos.org/6.10/extras/x86_64/" >/var/cache/yum/x86_64/6/extras/mirrorlist.txt
echo "https://vault.centos.org/6.10/updates/x86_64/" >/var/cache/yum/x86_64/6/updates/mirrorlist.txt
# These are optional ( if they are installed in your system):
if [ -f /var/cache/yum/x86_64/6/centos-sclo-rh/mirrorlist.txt ]; then
echo "https://vault.centos.org/6.10/sclo/x86_64/rh/" >/var/cache/yum/x86_64/6/centos-sclo-rh/mirrorlist.txt
fi
if [ -f /var/cache/yum/x86_64/6/centos-sclo-sclo/mirrorlist.txt ]; then
echo "https://vault.centos.org/6.10/sclo/x86_64/sclo/">/var/cache/yum/x86_64/6/centos-sclo-sclo/mirrorlist.txt
fi
Voila!
References:
https://www.linuxquestions.org/questions/centos-111/yumrepo-error-centos-5-9-a-4175604669/
No hay comentarios:
Publicar un comentario