Linux_yum安裝時報404錯誤


使用yum安裝報錯如下:

[root@localhost ~]# yum install gcc
已加載插件:fastestmirror
Loading mirror speeds from cached hostfile
 * base: ftp.sjtu.edu.cn
 * extras: ap.stykers.moe
 * updates: ap.stykers.moe
http://mirrors.njupt.edu.cn/centos/7.7.1908/os/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
正在嘗試其它鏡像。
To address this issue please refer to the below wiki article

https://wiki.centos.org/yum-errors

If above article doesn't help to resolve this issue please use https://bugs.centos.org/.

http://mirrors.cqu.edu.cn/CentOS/7.7.1908/os/x86_64/repodata/repomd.xml: [Errno14] HTTP Error 404 - Not Found
正在嘗試其它鏡像。
http://mirrors.cn99.com/centos/7.7.1908/os/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
正在嘗試其它鏡像。
http://mirrors.zju.edu.cn/centos/7.7.1908/os/x86_64/repodata/repomd.xml: [Errno14] HTTP Error 404 - Not Found
正在嘗試其它鏡像。

 

解決方法:

在使用yum安裝軟件包時提示標題所示的錯誤信息,原因估計是yum查找軟件包依賴時使用的是過時的緩存,清空更新之后,再次安裝軟件,問題消失,

具體指令如下:

# yum clean all
 
# yum update

更新完成后,重新執行命令

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM