Linux、CentOS、VMware问题集合可以看这篇文章
Linux各种问题报错集合 一篇文章解决Linux基本能遇到的所有问题 未来会持续更新
Centos7 阿里yum源 [Errno 14] HTTP Error 404 – Not Found 问题解决方案
这个问题的原因是阿里源没有配置好或者不是最新的,需要重新配置阿里源
我更新是选择了的阿里的源,同样也可以选择网易163或者其他的。
网址:阿里云开源镜像站
更换源方法如下:
在镜像站首页找到自己的Linux版本(我的是CentOS 7.6),点击help。新打开的网页中详细的说明了如何备份,如何更换镜像源(在Linux的Terminal也就是命令行中):输入:
1、备份
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
2、下载新的CentOS-Base.repo 到/etc/yum.repos.d/
CentOS5:
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repo
CentOS6:
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
CentOS7:
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
3、之后运行yum makecache生成缓存
yum makecache
PS:
更换完源进行下载或者生成缓存时可能遇到以下错误:
1.
[Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found" Trying other mirror.
[Errno 14] PYCURL ERROR 7 -