1. 程式人生 > 實用技巧 >yum 突然失效 各種404 error [Errno 14] HTTP Error 404 - Not Found)

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