Page 1 of 1

Linux Agent installation

Posted: Mon Apr 08, 2013 6:57 pm
by murali
Hello

I am installing Linux agent, i am getting following error

warning: ./packages/epel-release-5-4.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 217521f6
warning: waiting for transaction lock on /var/lib/rpm/__db.000

Then it hangs.

I have one more server with Linux RHEL 4, when i am trying to install agent its keep on installing, i was almost waiting like 4 mins still it was running, finally i cancelled that.

I have downloaded both the agets from Nagios site. We are customer of Nagios

Thanks
Krishna

Re: Linux Agent installation

Posted: Tue Apr 09, 2013 10:26 am
by abrist
murali wrote:warning: ./packages/epel-release-5-4.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 217521f6
This error is fairly common, it can be ignored.
murali wrote:warning: waiting for transaction lock on /var/lib/rpm/__db.000
This is likely the main issue. The berkley database is currently locked, either by another package install or a stale lock. Do you have any other package installs pending? If not, you can ^C out of the build, remove the lock file (as long as you are sure that there are no other current or pending package installs), at try once again.

Lets check what has the file tied up:

Code: Select all

lsof /var/lib/rpm/__db.000
Next, lets check to see the file size, many times it is zero size.

Code: Select all

ls -l /var/lib/rpm/__db.000
If it is of zero size, lets touch it to recreate it and set permissions:

Code: Select all

touch /var/lib/rpm/__db.000
chown root:root /var/lib/rpm/__db.000
chmod 644 /var/lib/rpm/__db.000
Finally, You could also try setting "gpgcheck" to "0" temporarily for the package install (remember to change it back):

Code: Select all

vi /etc/yum.conf
Change:

Code: Select all

gpgcheck=1
To:

Code: Select all

gpgcheck=0