2012-06-27 33 views
0

我在Amazon EC2中有一個fedora實例runnig。問題是,我已經安裝了一個PHP,但我想更新(PS:有人已經給我的實例與PHP安裝)。當我嘗試命令:yum更新php時出現錯誤消息。在AMAZON EC2的fedora實例中更新PHP

Setting up Update Process 
    Setting up repositories 
    Cannot find a valid baseurl for repo: updates-released 
    Error: Cannot find a valid baseurl for repo: updates-released 

我試圖取消註釋yum repositorie文件中的baseurl行,但會出現新的錯誤。

Setting up Update Process 
    Setting up repositories 
    http://download.fedora.redhat.com/pub/fedora/linux/core/updates/4/i386/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (-2, 'Name or service not known')> 
    Trying other mirror. 
    Cannot open/read repomd.xml file for repository: updates-released 
    failure: repodata/repomd.xml from updates-released: [Errno 256] No more mirrors to try. 
    Error: failure: repodata/repomd.xml from updates-released: [Errno 256] No more mirrors to try. 

回答

0

的錯誤,你得到的聲音就像是一個連接或DNS相關的問題 - 看看你是否可以ping「download.fedora.redhat.com」,然後看看你能不能用wget來嘗試獲取文件。

此外,您的/etc/yum.repos.d/目錄可能包含一個存儲庫文件,其中包含無效的存儲庫 - 我不確定他們是否仍在發佈Fedora 4的更新(它是在周圍發佈的2004ish)。最好的辦法是確保/ etc/fedora-release中的版本與該版本庫配置文件中的版本匹配。