RPM error : Can't create transaction lock on /

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 at the beginning of this post. 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
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux