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

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

提交回复
热议问题