[Rpm-maint] rpm-4.4.2.1: installing packages fails in rpmtsAcquireLock()

Andreas Haumer andreas at xss.co.at
Sun Aug 19 17:35:14 UTC 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi!

A followup as it seems I have found the problem as well
a solution!

Andreas Haumer schrieb:
> Hi!
> 
> Today I tried to upgrade to rpm-4.4.2.1 but it seems it
> is broken, at least on my system...
> 
> The problem: rpm-4.4.2.1 denies to upgrade a package with
> the following error message:
> 
> error: can't create transaction lock on /
> 
> and the upgrade fails, of course.
> 

The new rpm command used "/" as transaction lock path
because my RPM macro file was missing the macro "_rpmlock_path"

Without this macro set, rpm tried to put it's lock on "/"
which fails like described in my previous post.

Solution: put the following line in /usr/lib/rpm/macro:

%_rpmlock_path        %{_dbpath}/__db.000


With this macro set, rpm works as expected when installing
packages.

Regards,

- - andreas

- --
Andreas Haumer                     | mailto:andreas at xss.co.at
*x Software + Systeme              | http://www.xss.co.at/
Karmarschgasse 51/2/20             | Tel: +43-1-6060114-0
A-1100 Vienna, Austria             | Fax: +43-1-6060114-71
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGyH9QxJmyeGcXPhERAi2/AKCGlKctJTOnGJGxH90yCgUqrzkFKwCcCJDW
LquiPccr2G9wSrVcVmdYU7A=
=K/0j
-----END PGP SIGNATURE-----



More information about the Rpm-maint mailing list