Cannot get shared lock on database for rpm on AIX 6.1


 
Thread Tools Search this Thread
Operating Systems AIX Cannot get shared lock on database for rpm on AIX 6.1
# 1  
Old 01-13-2013
Cannot get shared lock on database for rpm on AIX 6.1

Hello,

I was trying to install python on aix and it was taking too long and I closed the terminal.
Now when i issue the command
Code:
rpm -qa

instead of getting all the rpms installed I'm getting the following error.

Code:
root:stud -> $ rpm -qa
cannot get shared lock on database
rpmQuery: rpmdbOpen() failed

How can I correct this.

And if I tried to install an rpm package as :
Code:
$ rpm -i -v python-2.6.7-1.aix5.1.ppc.rpm

Code:
I get the error as :
cannot get exclusive lock on database
error: cannot open /opt/freeware/packages/packages.rpm

BTW I am a root user.

Last edited by gaugeta; 01-13-2013 at 09:48 AM..
# 2  
Old 01-13-2013
It looks like you have a rpm process running which has got an exclusive lock on RPM database. I suggest you to check your process status report and kill if found.
Code:
ps -eaf | grep -i rpm | grep -v grep

This User Gave Thanks to Yoda For This Post:
# 3  
Old 01-14-2013
@bipinajith:Thanks for the reply.
This worked perfectly.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

0514-516 Device Configuration Database Lock Service

Hello guys, on one of our AIX VIO LPARs I can not remove hdiskpower devices, which seemed to presented to the VIO in an incorrect way and behaviour (not all paths can be seen, pseudo device name is unknown etc.) Therefor I decided to deattach the hdiskpower device from PowerPath controll by: ... (5 Replies)
Discussion started by: tomek79
5 Replies

2. AIX

AIX rpm: a question about deps

On Solaris 10 i use pkgutil,very nice,update like "apt-get" On HPUX i use depothelper for resolv depends On AIX there is something similar for use rpm? I try this but is not the same thing. AIX Open Source Packages | FAQs / FAQs (Frequently Asked Questions) (1 Reply)
Discussion started by: Linusolaradm1
1 Replies

3. Red Hat

How to update rpm database regarding removed file of a package?

For Suppose, I have installed a package having files file1, file2 and file3. After installation, I removed the file "file3". But "rpm -qf file3" is giving the package name, even file3 was not there. And also "rpm -ql package" is also displaying all 3 files. How can i update rpm database about... (6 Replies)
Discussion started by: snreddy_gopu
6 Replies

4. AIX

Issue with installing rpm in AIX 6.1

I am trying to install an rpm : libiconv-1.14-1.aix5.1.ppc.rpm which is a dependency to install GIT. While I gave the command I got the foll message: root:user-> $ rpm -i -v libiconv-1.14-1.aix5.1.ppc.rpm libiconv-1.14-1 ar: Cannot open or remove a file containing a running program.... (2 Replies)
Discussion started by: gaugeta
2 Replies

5. Programming

Reading rpm database from windows.

Hello, I want to read a rpm database through my program in c ,I searched for it and found there is one library openly available that is rpmlib thorugh which we can access rpm databse but I want to use it from windows is it possible to read one rpm database from windows,I want to read the... (4 Replies)
Discussion started by: pradiptart
4 Replies

6. Linux

Could not open the lock database - Apache WebDAV setup

I configured a WebDAV server using Apache. Here is my configuration: DAVLockDB /var/www/DAVLock.db <Location /majid> AllowOverride None Options +Indexes DAV On AuthUserFile /var/www/users.db AuthName Authentication AuthType Basic <Limit... (1 Reply)
Discussion started by: majid.merkava
1 Replies

7. Shell Programming and Scripting

How to make RPM not write to RPM database if RPM fails to deploy?

How to make RPM not write to RPM database if RPM fails to deploy? IE I create an rpm spec file that contains the following if then exit 1 fi My rpm will fail at deployment, but if I do rpm -qa , I can see the rpm in the rpm db (3 Replies)
Discussion started by: 3junior
3 Replies

8. Infrastructure Monitoring

Database table and Shared mem Sync issues

Hi, I wanted ideas on how to achieve this efficiently using C++ concept:- I have a DB table that contains rows of endpoints (say IDs vs names). There is process say "A" that calls another process B's API to increment counters if an operation is performed by an endpoint. DB table:- ID ... (3 Replies)
Discussion started by: trendzy2010
3 Replies

9. AIX

[AIX 5.2] Problem with rpm

I downloaded gcc-cplusplus-4.0.0-1.aix5.2.ppc.rpm from IBM AIX Toolbox Download Page - Alphabetical Listing but: -bash-3.00# rpm -ivh gcc-cplusplus-4.0.0-1.aix5.2.ppc.rpm error: gcc-cplusplus-4.0.0-1.aix5.2.ppc.rpm cannot be installed I can't understand wht kind of error is it... Can be... (1 Reply)
Discussion started by: untamed
1 Replies

10. Shell Programming and Scripting

Installing database through RPM

Hi everyone I have just joined a software developing team. I am new to unix. Basically we are developing a product, the problem is when the end user will install this package we would like to install the datbase associated with our product using RPM. Can it be done? how secure it is? and... (0 Replies)
Discussion started by: atul.saxena
0 Replies
Login or Register to Ask a Question