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

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

    Be sure that you can ping vault.centos.org.

    Then edit /etc/yum.repos.d/CentOS-Base.repo

    Comment out mirrorlist and uncomment baseurl

    Change all

    baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
    

    to

    baseurl=http://vault.centos.org/$releasever/centosplus/$basearch/
    

    And enjoy your yum update!!! ;)

提交回复
热议问题