An exception occurred while using the command yum
failure: repodata/repomd.xml from testing-devtools-2-centos-7: [Errno 256] No more mirrors to try. http://people.centos.org/tru/devtools-2/7/x86_64/RPMS/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
1 Network confirmed that no problem ~
This folder is not 7 2 tests found http://people.centos.org/tru/devtools-2 URL
[Processing] - yum replacement source:
a yum configuration file into the folder: cd /etc/yum.repos.d
b Backup Source: mv ./CentOS-Base.repo ./CentOS-Base.repo.bak
c Download source: wget http://mirrors.163.com/.help/CentOS-base-163.repo
d as the default entry: mv CentOS6-Base-163.repo CentOS-Base.repo
e generated cache: yum clean all
yum makecache
yum makecache 404 anomalies still occur . . . . . . . . . . . . . . . . Found this https://blog.csdn.net/zhou920786312/article/details/80051318
Will greatly thank ~~~/etc/yum.repos.d文件夹下 devtools-2.repo 后缀名改为
devtools-2.Beirepo 后运行yum命令 404异常消失
But tips
/var/run/yum.pid is locked, PID solve the problem xxxx is another program running
[Processing] - Run rm -f /var/run/yum.pid
Rebuild the cache --- run successfully! !