CentOS6 yum命令报错YumRepo Error: All mirror URLs are not using ftp, http[s] or file,修改yum源后404 Not Found
kevin.Zhu 发布于:2021-5-19 10:43 分类:又一文摘 有 31 人浏览,获得评论 0 条
https://www.cnblogs.com/pistachio123/p/14301949.html
执行下面命令,新建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