我正在尝试在 Red Hat Enterprise Linux 5.5 上安装 OpenVAS。我已成功运行 yum install openvas-client,但 yum install openvas-server 打印以下错误:
--> Finished Dependency Resolution
openvas-client-3.0.1-1.el5.art.i386 from installed has depsolving problems
--> Missing Dependency: libopenvas_hg.so.3 is needed by package openvas-client-3.0.1-1.el5.art.i386 (installed)
openvas-client-3.0.1-1.el5.art.i386 from installed has depsolving problems
--> Missing Dependency: libopenvas_nasl.so.3 is needed by package openvas-client-3.0.1-1.el5.art.i386 (installed)
openvas-client-3.0.1-1.el5.art.i386 from installed has depsolving problems
--> Missing Dependency: libopenvas_omp.so.3 is needed by package openvas-client-3.0.1-1.el5.art.i386 (installed)
openvas-scanner-3.2-0.2.el5.art.i386 from atomic has depsolving problems
--> Missing Dependency: net-snmp-utils is needed by package openvas-scanner-3.2-0.2.el5.art.i386 (atomic)
openvas-client-3.0.1-1.el5.art.i386 from installed has depsolving problems
--> Missing Dependency: libopenvas_misc.so.3 is needed by package openvas-client-3.0.1-1.el5.art.i386 (installed)
openvas-scanner-3.2-0.2.el5.art.i386 from atomic has depsolving problems
--> Missing Dependency: openldap-clients is needed by package openvas-scanner-3.2-0.2.el5.art.i386 (atomic)
openvas-client-3.0.1-1.el5.art.i386 from installed has depsolving problems
--> Missing Dependency: libopenvas_base.so.3 is needed by package openvas-client-3.0.1-1.el5.art.i386 (installed)
Error: Missing Dependency: net-snmp-utils is needed by package openvas-scanner-3.2-0.2.el5.art.i386 (atomic)
Error: Missing Dependency: libopenvas_base.so.3 is needed by package openvas-client-3.0.1-1.el5.art.i386 (installed)
Error: Missing Dependency: libopenvas_hg.so.3 is needed by package openvas-client-3.0.1-1.el5.art.i386 (installed)
Error: Missing Dependency: libopenvas_nasl.so.3 is needed by package openvas-client-3.0.1-1.el5.art.i386 (installed)
Error: Missing Dependency: openldap-clients is needed by package openvas-scanner-3.2-0.2.el5.art.i386 (atomic)
Error: Missing Dependency: libopenvas_omp.so.3 is needed by package openvas-client-3.0.1-1.el5.art.i386 (installed)
Error: Missing Dependency: libopenvas_misc.so.3 is needed by package openvas-client-3.0.1-1.el5.art.i386 (installed)
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.
请注意,每个缺失的依赖项后面都跟有单词 (installed) 或单词 (atomic) - 表示存储库的名称。当我尝试安装任何这些子依赖项时,安装都会失败(要么是因为缺少依赖项,要么是因为 rpm 已经安装)。例如,如果我尝试安装“libopenvas_hg.so.3”的 rpm,我会收到一条错误消息,表明它已经安装。然而,“libopenvas_hg.so.3”被列为缺失的依赖项。为什么?我需要先卸载所有“缺失”的依赖项吗?
答案1
猜测一下...
我想说的是,您尝试安装的 openvas-scanner 版本;openvas-scanner-3.2-0.2.el5.art.i386 与您当前安装的客户端不同;openvas-client-3.0.1-1.el5.art.i386
因此 yum 正在尝试为扫描仪安装一些依赖项,这些依赖项与客户端使用的已安装依赖项相冲突。这迫使 yum 尝试一次性升级所有内容以满足要求 - 包括 openvas-client。因此 yum 会告诉您有关您已安装的 openvas-client 依赖项的信息。
但是... openldap-clients 和 net-snmp-utils 被列出这一事实表明缺少发行版存储库问题... openldap-clients 是来自您的基本安装“更新”存储库的非版本依赖项,因此应该从那里解决。这可能表明您已禁用 rhel-updates 存储库,或者您的订阅已过期。
尝试以下操作来了解为什么无法安装 openldap-clients;
# yum info openldap-clients
Loaded plugins: downloadonly, fastestmirror, security
...
Available Packages
Name : openldap-clients
Arch : x86_64
Version : 2.3.43
如果那不起作用,请尝试;
yum --enablerepo=base --enablerepo=updates info openldap-clients
然后尝试
yum --enablerepo=base --enablerepo=updates install openldap-clients net-snmp-utils
基本上,它从解决你的发行版依赖关系开始,然后看看 openvas-scanner 是否仍然无法更新......