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

前端 未结 14 1413
傲寒
傲寒 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

    Check if you are able to ping an externals site such as www.google.com. If not insert lines:

    nameserver 208.67.222.222
    nameserver 208.67.220.220
    

    in /etc/resolve.conf

    Also in /etc/yum.repos.d/CentOS-Base.repo

    uncommented all the mirrorlist and comment out all the baseurl

    If mirrorlist doesn't work for you you can try only the baseurl.

    Hope it helps!!

    0 讨论(0)
  • 2020-12-30 04:15

    Centos 6 version met its EOL last month (November 30, 2020)

    You can use one of the unofficial mirrors listed by centos in your /etc/yum.repos.d/CentOS-Base.repo. In my case (6.10) I used the mirror http://mirror.nsc.liu.se/centos-store/6.10/ and it worked smoothly:

    [base]
    name=CentOS-$releasever - Base
    baseurl=http://mirror.nsc.liu.se/centos-store/6.10/os/$basearch/
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
    # same for the others [updates] etc in the file
    
    0 讨论(0)
提交回复
热议问题