雜了個談(三)——解決CentOS下yum命令報404錯誤的問題

來源:互聯網
上載者:User

標籤:centos   yum   404   

最近在CentOS 6.6 x64作業系統下使用yum時會報-1所示的404錯誤:

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M02/71/9D/wKioL1XVPkiCYerrAAgXOV2BenY448.jpg" alt="報錯資訊" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;" />

圖-1 yum命令報錯資訊

由於錯誤類型是404,首先想到的是是不是外網上不去了,結果能ping通,試了一下其他虛擬機器,yum並沒有出現同樣的問題,而出錯的虛擬機器上也並沒有印象對yum的配置等做過修改。無奈之下在網上搜了一下,發現下面這種方法可以解決問題:

[[email protected] ~]# yum clean all[[email protected] ~]# rpm --rebuilddb[[email protected] ~]# yum update

其中,yum update所需時間會比較長。yum update成功後,發現yum又恢複了之前的活力了。

完。

參考資料:

CentOS yum報錯404


本文出自 “細桶假狗屎” 部落格,請務必保留此出處http://xitongjiagoushi.blog.51cto.com/9975742/1686331

雜了個談(三)——解決CentOS下yum命令報404錯誤的問題

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.