YumRepo Error: All mirror URLs are not using ftp, http[s] or file

前端 未结 14 1534
傲寒
傲寒 2020-12-30 03:30

I have set up a centOS 6.5 server using VMWare Workstation 9 on a Windows 8.1 host laptop. When trying to use yum to ins

14条回答
  •  长情又很酷
    2020-12-30 04:14

    Adding the following before yum update -y helped me to fix the problem:

    yum clean all
    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
    

    BTW, CentOS 5 had already reached EOL

提交回复
热议问题