0

我在通过 zypper 安装“Company-hardening-1.0-1.noarch.rpm”RPM 时遇到问题。涉及2个系统。两者都是 SUSE-Linux-Enterprise-Server-11-SP3 VM。

系统 1:(工作)在这个系统中我可以安装 rpm,在这种情况下,zypper 会自动解决依赖关系。

susevm1:~ # zypper install Company-hardening-1.0-1.noarch.rpm
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following NEW packages are going to be installed:
  Company-hardening openscap-engine-sce

The following packages are not supported by their vendor:
  Company-hardening openscap-engine-sce

2 new packages to install.
Overall download size: 195.0 KiB. After the operation, additional 1.0 MiB will be used.
Continue? [y/n/?] (y): n

系统 2:(不工作)

在此系统中,未安装 RPM,因为 zypper 无法解决依赖关系。

linux-g33k:~/Desktop/RPMS # zypper install Company-hardening-1.0-1.noarch.rpm
Loading repository data...
Reading installed packages...
Resolving package dependencies...

Problem: nothing provides openscap-engine-sce >= 1.2.5-2 needed by Company-hardening-1.0-1.noarch
 Solution 1: do not install Company-hardening-1.0-1.noarch
 Solution 2: break Company-hardening-1.0-1.noarch by ignoring some of its dependencies

Choose from above solutions by number or cancel [1/2/c] (c): c

请注意,两个系统都具有相同版本的 zypper。我知道,这可能是一个简单而愚蠢的问题。:) 这可能是因为一些存储库差异。

谢谢,赫曼特

4

1 回答 1

1

这意味着您没有在两台机器上激活相同的存储库。比较输出

zypper lr -u

在两台机器上都应该向您显示要添加或启用的存储库。

于 2016-10-26T15:13:30.913 回答