错误:软件包:cglib-2.1.3-4.jpp5.noarch (@jpackage-generic) 在全新 2.7 太空行走安装中

错误:软件包:cglib-2.1.3-4.jpp5.noarch (@jpackage-generic) 在全新 2.7 太空行走安装中

我正在全新安装 spacewalk 2.7,并且在运行时

# yum -y install spacewalk-postgresql

我收到错误:

--> Finished Dependency Resolution
Error: Package: cglib-2.1.3-4.jpp5.noarch (@jpackage-generic)
Requires: asm >= 1.5.3
Removing: asm-1.5.3-7.jpp5.noarch (@jpackage-generic)
asm = 1.5.3-7.jpp5
Obsoleted By: spacewalk-java-2.7.116-1.el7.noarch (spacewalk)
Not found
Error: Package: hibernate3-c3p0-3.6.10-20.sw.noarch (group_spacewalkproject-java-packages)
Requires: mvn(com.mchange:c3p0)
Error: Package: cglib-mvn-2.7.12-1.el7.centos.noarch (group_spacewalkproject-java-packages)
Requires: cglib = 2.2
Installed: cglib-2.1.3-4.jpp5.noarch (@jpackage-generic)
cglib = 2.1.3-4.jpp5
You could try using --skip-broken to work around the problem
YIu could try running: rpm -Va --nofiles --nodigest

有什么线索我该如何解决这个问题?

主机是 Centos 7.4.1708 (核心)

# yum versionlock list
Loaded plugins: fastestmirror, versionlock
0:cglib-2.1.3-4.jpp5.*
0:c3p0-0.9.1.2-2.jpp5.*
versionlock list done

删除 group_spacewalkproject-java-packages-epel-7.repo 后(将 group_spacewalkproject-java-packages-epel-7.repo 重命名为 group_spacewalkproject-java-packages-epel-7.repo.not.used)

现在当我运行 yum -y install spacewalk-postgresql

我得到:

Error: Package: spacewalk-java-2.7.116-1.el7.noarch (spacewalk)
           Requires: hibernate3-ehcache >= 3.6.10
Error: Package: cglib-2.1.3-4.jpp5.noarch (jpackage-generic)
           Requires: asm >= 1.5.3
           Available: asm-1.5.3-7.jpp5.noarch (jpackage-generic)
               asm = 1.5.3-7.jpp5
Error: Package: spacewalk-java-2.7.116-1.el7.noarch (spacewalk)
           Requires: hibernate3 >= 3.6.10
           Available: hibernate3-3.2.4-1.SP1_CP01.9.jpp5.noarch (jpackage-generic)
               hibernate3 = 3.2.4-1.SP1_CP01.9.jpp5
Error: Package: spacewalk-taskomatic-2.7.116-1.el7.noarch (spacewalk)
           Requires: hibernate3-ehcache >= 3.6.10
Error: Package: spacewalk-taskomatic-2.7.116-1.el7.noarch (spacewalk)
           Requires: hibernate3-c3p0 >= 3.6.10
Error: Package: spacewalk-taskomatic-2.7.116-1.el7.noarch (spacewalk)
           Requires: hibernate3 >= 3.6.10
           Available: hibernate3-3.2.4-1.SP1_CP01.9.jpp5.noarch (jpackage-generic)
               hibernate3 = 3.2.4-1.SP1_CP01.9.jpp5
Error: Package: spacewalk-java-2.7.116-1.el7.noarch (spacewalk)
           Requires: hibernate3-c3p0 >= 3.6.10
Error: Package: spacewalk-java-2.7.116-1.el7.noarch (spacewalk)
           Requires: apache-commons-el
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

在我禁用 group_spacewalkproject-java-packages-epel-7.repo 之后

[group_spacewalkproject-java-packages]
name=Copr repo for java-packages owned by @spacewalkproject
baseurl=https://copr-be.cloud.fedoraproject.org/results/@spacewalkproject/java-packages/epel-7-$basearch/
type=rpm-md
skip_if_unavailable=True
gpgcheck=1
gpgkey=https://copr-be.cloud.fedoraproject.org/results/@spacewalkproject/java-packages/pubkey.gpg
repo_gpgcheck=0
enabled=1
enabled_metadata=1

再次运行yum -y install spacewalk-postgresql我得到:

Error: Package: spacewalk-java-2.7.116-1.el7.noarch (spacewalk)
           Requires: hibernate3-ehcache >= 3.6.10
Error: Package: cglib-2.1.3-4.jpp5.noarch (jpackage-generic)
           Requires: asm >= 1.5.3
           Available: asm-1.5.3-7.jpp5.noarch (jpackage-generic)
               asm = 1.5.3-7.jpp5
Error: Package: spacewalk-java-2.7.116-1.el7.noarch (spacewalk)
           Requires: hibernate3 >= 3.6.10
           Available: hibernate3-3.2.4-1.SP1_CP01.9.jpp5.noarch (jpackage-generic)
               hibernate3 = 3.2.4-1.SP1_CP01.9.jpp5
Error: Package: spacewalk-taskomatic-2.7.116-1.el7.noarch (spacewalk)
           Requires: hibernate3-ehcache >= 3.6.10
Error: Package: spacewalk-taskomatic-2.7.116-1.el7.noarch (spacewalk)
           Requires: hibernate3-c3p0 >= 3.6.10
Error: Package: spacewalk-taskomatic-2.7.116-1.el7.noarch (spacewalk)
           Requires: hibernate3 >= 3.6.10
           Available: hibernate3-3.2.4-1.SP1_CP01.9.jpp5.noarch (jpackage-generic)
               hibernate3 = 3.2.4-1.SP1_CP01.9.jpp5
Error: Package: spacewalk-java-2.7.116-1.el7.noarch (spacewalk)
           Requires: hibernate3-c3p0 >= 3.6.10
Error: Package: spacewalk-java-2.7.116-1.el7.noarch (spacewalk)
           Requires: apache-commons-el
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

-------------------------------------------- 进一步故障排除 --------- 安装:

c3p0-0.9.2.1-4.el7.noarch.rpm
cglib-2.2-18.el7.noarch.rpm

手动下载到目标主机,并使用 rpm -ivh <> 安装两个包现在,当我运行

yum -y install spacewalk-postgresql

我收到错误:

Could not install /root/ssl-build/gss-spacewalk-2-prod.aws.uscis/rhn-org-httpd-ssl-key-pair-gss-spacewalk-2-prod.aws.xx-1.0-1.noarch.rpm at /usr/bin/rhn-install-ssl-cert.pl line 68.

这可能是因为该主机是另一个太空行走服务器的快照。需要进一步解决这个问题……

答案1

我的环境:Centos 64位 7 VMWare

我在安装2.7版本时遇到了同样的问题。

请看一下这个:

https://copr.fedorainfracloud.org/coprs/g/spacewalkproject/spacewalk-2.8/

正如 github 上建议/链接的那样:

https://github.com/spacewalkproject/spacewalk/wiki/HowToInstall#installing-spacewalk

我删除了基于 2.7 的 spacewalk 仓库,然后当我从 fedorainfracloud 添加 2.8 仓库并执行“yum update”时,我最初的 spacewalk 相关安装就升级到了 2.8。

现在我可以继续操作而不会出现依赖性错误:

yum install spacewalk-postgresql

安装成功

但是 tomcat 出现了不同的错误:

Cobbler requires tftp and xinetd services be turned on for PXE provisioning functionality. Enable these services [Y]?
* Restarting services.
Tomcat failed to start properly or the installer ran out of tries.  Please check /var/log/tomcat6/catalina.out or /var/log/tomcat/catalina.$(date +%Y-%m-%d).log for errors.

为了纠正这个错误,我启用并启动了 tomcat 服务:

systemctl enable tomcat
systemctl start tomcat
/usr/sbin/spacewalk-service start

然后我在 spacewalk 网络控制台上成功创建了用户: 成功

相关内容