在 Amazon SUSE SE 11 SP3 上安装 php5-openssl

Posted

技术标签:

【中文标题】在 Amazon SUSE SE 11 SP3 上安装 php5-openssl【英文标题】:Installing php5-openssl on Amazon SUSE SE 11 SP3 【发布时间】:2016-06-02 19:09:22 【问题描述】:

我有一个 SUSE ES 11 SP3 Amazon EC2 实例,我需要安装 php5-openssl 包,但我在使用时遇到了麻烦“zypper 安装”。我应该升级实例基础架构更新 (more details here),但我错过了最后期限,现在我的实例无用,因为我无法安装任何东西。

每当我使用 zypper install 我得到

Refreshing service 'susecloud'.
Problem retrieving the repository index file for service 'susecloud':
Download (curl) error for 'http://sa-east-1-ec2-update.susecloud.net/repo/repoindex.xml?cookies=0':
Error code: Connection failed
Error message: Couldn't resolve host 'sa-east-1-ec2-update.susecloud.net'

Check if the URI is valid and accessible.
Error building the cache:
[|] Valid metadata not found at specified URL(s)
Warning: Disabling repository 'php' because of the above error.
Download (curl) error for 'http://sa-east-1-ec2-update.susecloud.net/repo/update/SLE11-SDK-SP3-Pool/sle-11-x86_64/repodata/repomd.xml':
Error code: Connection failed
Error message: Couldn't resolve host 'sa-east-1-ec2-update.susecloud.net'

Abort, retry, ignore? [a/r/i/? shows all options] (a): a
Problem retrieving files from 'SLE11-SDK-SP3-Pool'.
Download (curl) error for 'http://sa-east-1-ec2-update.susecloud.net/repo/update/SLE11-SDK-SP3-Pool/sle-11-x86_64/repodata/repomd.xml':
Error code: Connection failed
Error message: Couldn't resolve host 'sa-east-1-ec2-update.susecloud.net'

Please see the above error message for a hint.
Warning: Disabling repository 'SLE11-SDK-SP3-Pool' because of the above error.
Download (curl) error for 'http://sa-east-1-ec2-update.susecloud.net/repo/update/SLE11-SDK-SP3-Updates/sle-11-x86_64/repodata/repomd.xml':
Error code: Connection failed
Error message: Couldn't resolve host 'sa-east-1-ec2-update.susecloud.net'

如果我尝试更新我得到的更新基础设施:

Adding repository 'tmp_instance_infrastructure_upgrade' [done]
Repository 'tmp_instance_infrastructure_upgrade' successfully added
Enabled: Yes
Autorefresh: No
GPG check: Yes
URI: dir:///usr/share/instance_infrastructure_upgrade/repo

Repository 'tmp_instance_infrastructure_upgrade' priority has been set to 1.
Retrieving repository 'tmp_instance_infrastructure_upgrade' metadata [done]
Building repository 'tmp_instance_infrastructure_upgrade' cache [done]
Specified repositories have been refreshed.
Refreshing service 'susecloud'.
Problem retrieving the repository index file for service 'susecloud':
Download (curl) error for 'http://sa-east-1-ec2-update.susecloud.net/repo/repoindex.xml?cookies=0':
Error code: Connection failed
Error message: Couldn't resolve host 'sa-east-1-ec2-update.susecloud.net'

Check if the URI is valid and accessible.
Error building the cache:
[|] Valid metadata not found at specified URL(s)
Warning: Disabling repository 'php' because of the above error.
Download (curl) error for 'http://sa-east-1-ec2-update.susecloud.net/repo/update/SLE11-SDK-SP3-Pool/sle-11-x86_64/repodata/repomd.xml':
Error code: Connection failed
Error message: Couldn't resolve host 'sa-east-1-ec2-update.susecloud.net'

...

--> Updating packages failed

我尝试安装每个 php5-openssl 依赖项,下载每个 RPM 并使用 rpm -i 进行安装,但每次我解决一个依赖项时都会出现另一个依赖项。我也尝试了 suse 论坛 (post here),但直到现在都没有成功。

所以我的问题是:

    有什么方法可以手动修复 zypper 存储库吗?即使只安装 php5-openssl 包。 有没有办法使用 RPM 来管理 php5-openssl 的依赖关系? 还有其他替代方法可以在我的 suse 实例中安装 php5-openssl 吗?

【问题讨论】:

【参考方案1】:

简而言之:

    您无法修复这些存储库;因为它们不再存在(尝试浏览到http://sa-east-1-ec2-update.susecloud.net/)。 rpm 无法查找依赖项,因为 rpm 不使用存储库(这就是 zypper 的用武之地)。您可以在the internet 上查找rpm,然后使用rpm 手动安装;但rpm 不会找到丢失的 rpm。 是的;如第 2 点所述;您可以查找 rpm;下载它们并手动安装它们;或者,您甚至可以查找包含所需 rpm 的存储库,然后添加该存储库。但是要小心;因为这些存储库可能不是为 Amazon EC2 制作的。如果你这样做;尝试找到尽可能近的存储库以使用 11 EC2...

【讨论】:

解决方案是将应用程序迁移到新实例。

以上是关于在 Amazon SUSE SE 11 SP3 上安装 php5-openssl的主要内容,如果未能解决你的问题,请参考以下文章

oracle 11g install on suse 12 sp3

求suse linux 10 sp3 ISO映像下载地址?要免费的

SuSE 11 sp3 下安装异系统共享Samba服务

Vmware Workstation + Suse Linux 11 SP3 + db2 purescale V10.5

Vmware Workstation + Suse Linux 11 SP3 + db2 purescale V10.5

SuSE 11 sp3下Weblogic关联节点管理器配置