Hottest Free Downloads - DownloadPipe.com Over 197,000 downloads! Bookmark Now!
DownloadPipe.com - New Downloads Every Minute
 SEARCH:
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

RPM error : Can't create transaction lock on /

 
   Linux (Home) -> Partner Relationship Management RSS
Next:  Please help me to remove/Update the Openssl defau..  
Author Message
Bala

External


Since: May 29, 2007
Posts: 2



(Msg. 1) Posted: 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
Login to vote
Bala

External


Since: May 29, 2007
Posts: 2



(Msg. 2) Posted: 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 <balaknat... DeleteThis @gmail.com> 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
Login to vote
Display posts from previous:   
Related Topics:
Unable to open temp file error - hi folks I am a newbie to rpm. So bear my dumb questions. I am trying to build some rpm on ppc platforms I have a spec file. I run this script f=`echo "$1"|sed -e s/.spec.res//|sed -e s/.spec//` ../brpm.sh SPECS/$f.spec 2>&1|tee $f.s...

Error: unpacking of archive failed on file : cpio: Archive.. - Hi All, I am struck up with a strange problem with the rpmbuild and rpm tools. I have a particular source tree that has the whole configuration scripts and the Makefiles inside. When I do a rpmbuild the rpm package is built and no error is returned. But...

GDM-config - Hello, I have installed XFCE, a Desktop Environment for Fedora 3.0, how can I configure GDM to show it in the option list to choose from, when I log in? Thanks, Daniel

Control attribute of directories not explicitly included i.. - Hi When installing rpm it create Directories not explicitly included in package ( happens when the file installed on directory path which doesn't exists ) Is there a way I can control of the permissions, group and owner of these directories without..

Repairing a bad "erase" - I had just installed a package and realized that I need to do some customization and therefore would need to build from source.. I ran the rpm -ev on the package and it proceeded to work through the uninstall.... but it hung at what appeared to be..
       Linux (Home) -> Partner Relationship Management All times are: Pacific Time (US & Canada) (change)
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
Categories:
 Windows Forums
 Game Forums
  Linux Forums
 Mac Forums
 PDA Forums
 Mobile Forums
  Top  |  Store  |  RSS Feeds RSS  |  Data Feeds  |  Advertise  |  Submit  |  Bookmark  |  Newsletter  |  Contact