简体   繁体   English

在AMAZON EC2上的fedora实例中更新PHP

[英]Updating PHP in fedora Instance on AMAZON EC2

I have a fedora Instance runnig in an Amazon EC2. 我在Amazon EC2中有一个fedora实例runnig。 The problem is, I have a php already installed, but I want to update (PS: Somebody already gave to me the instance with the php installed). 问题是,我已经安装了php,但是我想更新(PS:有人已经给我安装了php的实例)。 When I try the command: yum update php an error message appears. 当我尝试命令:yum update 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

I tried to uncomment the baseurl line in the yum repositorie files, but a new error appears. 我试图取消注释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.

The error that you are getting sounds like it's a connection or DNS related issue -- see if you can ping 'download.fedora.redhat.com,' then see if you can use wget to attempt to get the file. 您收到的错误听起来像是连接或DNS相关问题-查看是否可以ping'download.fedora.redhat.com',然后查看是否可以使用wget尝试获取文件。

Also, your /etc/yum.repos.d/ directory may contain a repository file with an invalid repository in it -- I'm not sure if they're still publishing updates for Fedora 4 (it was released around 2004ish). 另外,您的/etc/yum.repos.d/目录中可能包含带有无效存储库的存储库文件-我不确定他们是否仍在发布Fedora 4的更新(该发行版于2004ish左右发布)。 Your best bet is to make sure that the version in /etc/fedora-release matches with the version in that repository configuration file. 最好的选择是确保/ etc / fedora-release中的版本与该存储库配置文件中的版本匹配。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM