0

我有一个SUSE ES 11 SP3 Amazon EC2 实例,我需要安装 php5-openssl 包,但是在使用 "zypper install" 时遇到了麻烦。我应该升级 insance 基础设施更新(更多细节在这里),但我错过了最后期限,我现在有一个无用的实例,因为我无法安装任何东西。

每当我使用 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 论坛(在这里发帖),但直到现在都没有成功。

所以我的问题是:

  1. 有什么方法可以手动修复 zypper 存储库吗?即使只安装 php5-openssl 包。
  2. 有没有办法使用 RPM 来管理 php5-openssl 的依赖关系?
  3. 在我的 suse 实例中安装 php5-openssl 是否有另一种选择?
4

1 回答 1

1

简而言之:

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