centos6.5 执行yum install vim 报错,YumRepo Error: All mirror URLs are not using ftp, http[s] or file.

备份配置文件

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak

新建CentOS-Base.repo配置:

vim /etc/yum.repos.d/CentOS-Base.repo

粘贴如下内容

[centos-office]
name=centos-office
failovermethod=priority
baseurl=https://vault.centos.org/6.10/os/x86_64/
gpgcheck=1
gpgkey=https://vault.centos.org/6.10/os/x86_64/RPM-GPG-KEY-CentOS-6

wq保存退出即可正常使用yum命令。

猜你喜欢

转载自blog.csdn.net/javahelpyou/article/details/113783556
今日推荐