zypper依赖解析

时间:2016-10-26 12:48:37

标签: dependencies suse zypper

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

系统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。我知道,这可能是一个简单而愚蠢的问题。 :)这可能是因为某些存储库差异。

谢谢, 与Hemant

1 个答案:

答案 0 :(得分:1)

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

的输出
zypper lr -u
两台机器上的

应该显示要添加或启用的存储库。