我正在离线使用 ASIANUX Server7 机器,需要安装 snmp。事实上,我下载了网络管理协议-5.7.2-49.el7.x86_64.rpm从其他机器,我将其复制到 ASIANUX 机器,并尝试使用以下命令安装它:
rpm -i net-snmp-5.7.2-49.el7.x86_64.rpm
我收到此错误:
warning: net-snmp-5.7.2-49.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY'
error: Failed dependencies:
libnetsnmpagent.so.31()(64bit) is needed by net-snmp-1:5.7.2-49.el7.x86_64
libnetsnmpmibs.so.31()(64bit) is needed by net-snmp-1:5.7.2-49.el7.x86_64
libnetsnmptrapd.so.31()(64bit) is needed by net-snmp-1:5.7.2-49.el7.x86_64
net-snmp-agent-libs = 1:5.7.2-49.el7 is needed by net-snmp-1:5.7.2-49.el7.x86_64
net-snmp-libs = 1:5.7.2-49.el7 is needed by net-snmp-1:5.7.2-49.el7.x86_64
所以我下载了网络 snmp-代理-libs-5.7.2-49.el7.x86_64.rpm我尝试使用以下命令安装它:
rpm -i net-snmp-agent-libs-5.7.2-49.el7.x86_64.rpm
我收到此错误:
warning: net-snmp-agent-libs-5.7.2-49.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY"error: Failed dependencies: net-snmp-libs = 1:5.7.2-49.el7 is needed by net-snmp-agent-libs-1:5.7.2-49.el7.x86_64
所以我下载了网络 snmp-libs-5.7.2-49.el7_9.2.x86_64.rpm文件,并尝试使用以下命令安装它:
rpm -i net-snmp-libs-5.7.2-49.el7_9.2.x86_64.rpm
但我收到了这个错误:
warning: net-snmp-libs-5.7.2-49.el7_9.2.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
file /usr/lib64/libnetsnmp.so.31.0.2 from install of net-snmp-libs-1:5.7.2-49.el7_9.2.x86_64 conflicts with file from package net-snmp-libs-1:5.7.2-28.el7.x86_64
file /usr/share/snmp/mibs/UCD-SNMP-MIB.txt from install of net-snmp-libs-1:5.7.2-49.el7_9.2.x86_64 conflicts with file from package net-snmp-libs-1:5.7.2-28.el7.x86_64
笔记: 我没有互联网访问,这意味着我应该离线安装 snmp
感谢大家的支持