error: can't create transaction lock on /tmp/....
I am having a bit of trouble installing on linux. When I run ./utinstall I get the following error after I accept the license.
Accept (Y/N): y
error: can't create transaction lock on /tmp/utinstall.12667/var/lock/rpm/transaction
error: can't create transaction lock on /tmp/utinstall.12667/var/lock/rpm/transaction
./utinstall[156]: /tmp/utinstall.12667/opt/SUNWut/sbin/utinstall: not found
Has anybody seen this error before:
I am running this as root, so I am puzzled why this might be the case.
Thanks in advance
-James
[579 byte] By [
bdajames] at [2007-11-26 10:14:01]

# 1
Well I had to find out the hard way, but for the benefit of others.
It seems that RHEAS [and clones like CENTOS] release 4 has a problem with rpm.
The solution is downgrade the rpm package.
This did not fix my linux install but it fixed this error message.
Cheers
-James
# 3
This is related to a rpm bug found in RHEL 4 (I'm using Update 4). Essentially, rpm gives this error if you use the --root $SOMEDIR option but $SOMEDIR/var/lock/rpm doesn't exist. The utinstall script includes the following block:
mkdir -p $TMP_DIR/bin
mkdir -p $TMP_DIR/var/lib/rpm
PKGS_RPM="var/lib/rpm/packages.rpm"
I simply inserted a second "mkdir" line up there, so now the block reads:
mkdir -p $TMP_DIR/bin
mkdir -p $TMP_DIR/var/lib/rpm
mkdir -p $TMP_DIR/var/lock/rpm
PKGS_RPM="var/lib/rpm/packages.rpm"
It works fine now.
Charles