Help!

RPM error : Can't create transaction lock on /

 
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> PRM - Partner Relationship Management RSS
Next:  Please help me to remove/Update the Openssl defau..  
Author Message
Bala
External


Since: May 29, 2007
Posts: 2



PostPosted: Tue May 29, 2007 5:57 am    Post subject: RPM error : Can't create transaction lock on /
Archived from groups: linux>redhat>rpm (more info?)


Hi,

I'm trying to install mysql devel rpm on RHEL 5 and I'm stuck at this
error and cant proceed further.

"error: can't create transaction lock on /"

Output of the command that i'm trying to run is as below.

# rpm -i -vv mysql-devel-5.0.22-2.1.i386.rpm
D: ============== mysql-devel-5.0.22-2.1.i386.rpm
D: Expected size: 2484454 =
lead(96)+sigs(344)+pad(0)+data(2484014)
D: Actual size: 2484454
D: opening db environment /var/lib/rpm/Packages create:cdb:mpool
D: opening db index /var/lib/rpm/Packages rdonly mode=0x0
D: locked db index /var/lib/rpm/Packages
D: opening db index /var/lib/rpm/Pubkeys rdonly mode=0x0
warning: mysql-devel-5.0.22-2.1.i386.rpm: Header V3 DSA signature:
NOKEY, key ID 37017186
D: added binary package [0]
D: found 0 source and 1 binary packages
D: ========== +++ mysql-devel-5.0.22-2.1 i386/linux 0x0
D: opening db index /var/lib/rpm/Depends create mode=0x0
D: opening db index /var/lib/rpm/Providename rdonly mode=0x0
D: read h# 721 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: libmysqlclient.so.15 YES (db
provides)
D: read h# 721 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: libmysqlclient_r.so.15 YES (db
provides)
D: read h# 721 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: mysql = 5.0.22-2.1 YES (db
provides)
D: read h# 738 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: openssl-devel YES (db
provides)
D: Requires: rpmlib(CompressedFileNames) <= 3.0.4-1 YES
(rpmlib provides)
D: Requires: rpmlib(PayloadFilesHavePrefix) <= 4.0-1 YES
(rpmlib provides)
D: Conflicts: MySQL-devel NO
D: opening db index /var/lib/rpm/Conflictname rdonly mode=0x0
D: closed db index /var/lib/rpm/Depends
D: ========== recording tsort relations
D: ========== tsorting packages (order, #predecessors, #succesors,
tree, depth, breadth)
D: 0 0 0 0 1 0 +mysql-devel-5.0.22-2.1.i386
D: installing binary packages
error: can't create transaction lock on /
D: closed db index /var/lib/rpm/Pubkeys
D: closed db index /var/lib/rpm/Conflictname
D: closed db index /var/lib/rpm/Providename
D: closed db index /var/lib/rpm/Packages
D: closed db environment /var/lib/rpm/Packages
D: May free Score board((nil))
#

I checked up some other forums and almost all of them suggest the
following solutions:

1) Make sure the command is run as "root" user
2) Make sure /var/lib/rpm/ exists .
3) Make sure other package update tools or managers are not open "such
as yum/a diff rpm install window"

I have checked for all the above and yet cant proceed beyond the
original error mentioned during the start of the message. I also tried
to rebuild the rpm db thinking this could be a problem with the rpm
db. I get the same error for that too.

# rpm -vv --rebuilddb
error: can't create transaction lock on /
D: May free Score board((nil))
#

I'm running all these commands as the "root" user. Please help me in
addressing this problem.

Thanks,
Bala
Back to top
Bala
External


Since: May 29, 2007
Posts: 2



PostPosted: Wed May 30, 2007 1:18 am    Post subject: Re: RPM error : Can't create transaction lock on / [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On May 29, 5:57 pm, Bala wrote:
> Hi,
>
> I'm trying to install mysql devel rpm on RHEL 5 and I'm stuck at this
> error and cant proceed further.
>
> "error: can't create transaction lock on /"
>
> Output of the command that i'm trying to run is as below.
>
> # rpm -i -vv mysql-devel-5.0.22-2.1.i386.rpm
> D: ============== mysql-devel-5.0.22-2.1.i386.rpm
> D: Expected size: 2484454 =
> lead(96)+sigs(344)+pad(0)+data(2484014)
> D: Actual size: 2484454
> D: opening db environment /var/lib/rpm/Packages create:cdb:mpool
> D: opening db index /var/lib/rpm/Packages rdonly mode=0x0
> D: locked db index /var/lib/rpm/Packages
> D: opening db index /var/lib/rpm/Pubkeys rdonly mode=0x0
> warning: mysql-devel-5.0.22-2.1.i386.rpm: Header V3 DSA signature:
> NOKEY, key ID 37017186
> D: added binary package [0]
> D: found 0 source and 1 binary packages
> D: ========== +++ mysql-devel-5.0.22-2.1 i386/linux 0x0
> D: opening db index /var/lib/rpm/Depends create mode=0x0
> D: opening db index /var/lib/rpm/Providename rdonly mode=0x0
> D: read h# 721 Header V3 DSA signature: NOKEY, key ID 37017186
> D: Requires: libmysqlclient.so.15 YES (db
> provides)
> D: read h# 721 Header V3 DSA signature: NOKEY, key ID 37017186
> D: Requires: libmysqlclient_r.so.15 YES (db
> provides)
> D: read h# 721 Header V3 DSA signature: NOKEY, key ID 37017186
> D: Requires: mysql = 5.0.22-2.1 YES (db
> provides)
> D: read h# 738 Header V3 DSA signature: NOKEY, key ID 37017186
> D: Requires: openssl-devel YES (db
> provides)
> D: Requires: rpmlib(CompressedFileNames) <= 3.0.4-1 YES
> (rpmlib provides)
> D: Requires: rpmlib(PayloadFilesHavePrefix) <= 4.0-1 YES
> (rpmlib provides)
> D: Conflicts: MySQL-devel NO
> D: opening db index /var/lib/rpm/Conflictname rdonly mode=0x0
> D: closed db index /var/lib/rpm/Depends
> D: ========== recording tsort relations
> D: ========== tsorting packages (order, #predecessors, #succesors,
> tree, depth, breadth)
> D: 0 0 0 0 1 0 +mysql-devel-5.0.22-2.1.i386
> D: installing binary packages
> error: can't create transaction lock on /
> D: closed db index /var/lib/rpm/Pubkeys
> D: closed db index /var/lib/rpm/Conflictname
> D: closed db index /var/lib/rpm/Providename
> D: closed db index /var/lib/rpm/Packages
> D: closed db environment /var/lib/rpm/Packages
> D: May free Score board((nil))
> #
>
> I checked up some other forums and almost all of them suggest the
> following solutions:
>
> 1) Make sure the command is run as "root" user
> 2) Make sure /var/lib/rpm/ exists .
> 3) Make sure other package update tools or managers are not open "such
> as yum/a diff rpm install window"
>
> I have checked for all the above and yet cant proceed beyond the
> original error mentioned during the start of the message. I also tried
> to rebuild the rpm db thinking this could be a problem with the rpm
> db. I get the same error for that too.
>
> # rpm -vv --rebuilddb
> error: can't create transaction lock on /
> D: May free Score board((nil))
> #
>
> I'm running all these commands as the "root" user. Please help me in
> addressing this problem.
>
> Thanks,
> Bala

I solved this problem now. Turns out that the rpmlock_path macro in /
usr/lib/rpm/macros was not defined. So "/" was picked up as the
default path. I added this entry in /usr/lib/rpm/macros and was able
to install again.

# rpm -ivh mysql-devel-5.0.22-2.1.i386.rpm
warning: mysql-devel-5.0.22-2.1.i386.rpm: Header V3 DSA signature:
NOKEY, key ID 37017186
Preparing...
########################################### [100%]
1:mysql-devel
########################################### [100%]
#

More details can be found in this thread :
https://www.redhat.com/archives/rpm-list/2007-May/msg00048.html

Thanks,
Bala
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> PRM - Partner Relationship Management All times are: Eastern Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum