錯誤:軟體包:cglib-2.1.3-4.jpp5.noarch (@jpackage-generic) 在全新 2.7 spacewalk 安裝上

錯誤:軟體包:cglib-2.1.3-4.jpp5.noarch (@jpackage-generic) 在全新 2.7 spacewalk 安裝上

我正在全新安裝 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 web 控制台成功建立了使用者: 成功

相關內容