yum 突然失效 各种404 error [Errno 14] HTTP Error 404 - Not Found)

问题描述:

 

 

yum install  **

失败

[Errno 14] HTTP Error 404 - Not Found
Trying other mirror.

 

可以直接更新源缓存:

 

[root@linuxprobe yum.repos.d]# yum clean all       //清楚缓存
Loaded plugins: langpacks, product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Cleaning repos: base extras updates
Cleaning up everything
[root@linuxprobe yum.repos.d]# 
[root@linuxprobe yum.repos.d]# yum makecache       //生成缓存
Loaded plugins: langpacks, product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
http://mirrors.aliyun.com/centos/7Server/os/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found        
Trying other mirror.
http://mirrors.aliyuncs.com/centos/7Server/os/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to mirrors.aliyuncs.com:80; Connection refused"
Trying other mirror.
http://mirrors.cloud.aliyuncs.com/centos/7Server/os/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to mirrors.cloud.aliyuncs.com:80; Connection refused"
Trying other mirror.
^C
 Current download cancelled, interrupt (ctrl-c) again within two seconds
to exit.

 

 

 

 

然后ok啦

参考:

https://www.cnblogs.com/xuliang-daydayup/p/12740838.html

 

posted @ 2020-12-19 21:16  千家诗  阅读(1016)  评论(0编辑  收藏  举报