yum异常: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"

本文详细记录了在CentOS系统中遇到Chromium源404错误的解决过程,包括修改yum源配置、更换阿里云镜像源的具体步骤,以及在6.x版本下如何调整配置避免错误。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

http://people.centos.org/hughesjr/chromium/6/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: chromium-el6. Please verify its path and try again

 

问题解决思路:

根据报错意思是数据源找不到

1.通过在网上找到各种报错解决方案都不太行

2.通过百度修改yum数据源得到了启发:

1,登陆root帐号

2,cd /etc/yum.repo.d

3,mv CentOS-Base.repo CentOS-Base.repo.bak
4,wget http://mirrors.aliyun.com/repo/Centos-7.repo
5,mv Centos-7.repo CentOS-Base.repo
6, yum clean all
7, yum makecache
8,yum update

4~5步骤可以wget一步到位的

如果你是6开头的centos版本,那么只要将上面的所有7改为6即可

注意一般会备份一个原有的CentOS-Base.repo,我将其命名为CentOS-Base2.repo

但还是同样的错,发现那个404的地址没有切换成功,所以得证我的配置文件没生效

后来将CentOS-Base2.repo改名为CentOS-Base2.repo.bak后才生效不再报错

 

 


 

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值