Cannot install net-snmp because of failed dependency

0

I have a server here that is running SuSE Linux Enterprise Server 11 (i586) patch level 1. I am trying to install Net-SNMP on the machine. I downloaded the net-snmp-5.4.2.1-8.2.i586.rpm file and tried to install it:

ourserver1:~ # rpm -i net-snmp-5.4.2.1-8.2.i586.rpm
warning: net-snmp-5.4.2.1-8.2.i586.rpm: Header V3 DSA signature: NOKEY, key ID 034e6912
error: Failed dependencies:
        perl-SNMP = 5.4.2.1 is needed by net-snmp-5.4.2.1-8.2.i586

So then I downloaded perl-SNMP-5.4.2.1-8.2.i586.rpm and tried to install it:

ourserver1:~ # rpm -i perl-SNMP-5.4.2.1-8.2.i586.rpm
warning: perl-SNMP-5.4.2.1-8.2.i586.rpm: Header V3 DSA signature: NOKEY, key ID 034e6912
error: Failed dependencies:
        net-snmp = 5.4.2.1 is needed by perl-SNMP-5.4.2.1-8.2.i586

Why does each one depend on the other? How do I get Net-SNMP installed on this machine?

pacoverflow

Posted 2013-07-11T00:19:43.577

Reputation: 1 155

Answers

2

Install both at the same time.

rpm -Uvh net-snmp-5.4.2.1-8.2.i586.rpm perl-SNMP-5.4.2.1-8.2.i586.rpm

Ignacio Vazquez-Abrams

Posted 2013-07-11T00:19:43.577

Reputation: 100 516

0

I have faced the same problem. MY OS was: SLES-11 SP3 and i want to install net-snmp. This command resolves the dependency errors.

rpm -Uvh net-snmp-5.4.2.1-8.12.16.1.x86_64.rpm perl-SNMP-5.4.2.1-8.12.16.1.x86_64.rpm

Majid

Posted 2013-07-11T00:19:43.577

Reputation: 1

1Yes, and it is exactly the same solution which was originally accepted already two years ago, except that yours has different version numbers. Please do read the already provided solutions before posting a new one. – zagrimsan – 2015-11-16T12:11:53.493