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

前端 未结 14 1484
傲寒
傲寒 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条回答
  •  梦毁少年i
    2020-12-30 03:54

    There are two things you can do:

    1. Go to /etc/sysconfig/network-scripts/ and verify your interface file, ifcfg-eth0 for example. Change "NM_CONTROLLED" from "yes" to "no". Restart network.
    2. Go to /etc/sysconfig/network-scripts/ and edit ifcfg-eth0. Add DNS1=8.8.8.8 and DNS2=. First entry is Google Public DNS. Restart network.

    One of these should fix your issue.

    Also, if you didn't do this yet, go back to original /etc/yum.repos.d/CentOS-Base.repo file.

提交回复
热议问题