Page 1 of 1

SOLVEDcan't create transaction lock on /var/lib/rpm/__db.000

PostPosted: Feb 1st, '24, 15:23
by richardwest
I have downloaded a source RPM from https://emutopia.com/index.php/emulators/item/311-amstrad-cpc/1488-roland
I have followed the Wiki to install roland-0.68.src.rpm but when I issue the command
Code: Select all
rpm -ivh /home/Richard/rpmbuild/roland-0.68.src.rpm --nodeps
as a normal user as per the wiki, I get the error
Code: Select all
error: can't create transaction lock on /var/lib/rpm/__db.000 (Permission denied)
the --nodeps is due to a missing libSDL which I suspect will need to change in the spec file to lib64SDL
I'm probably missing something quite obvious, I have in the past built many RPMs from source for my old EEEPC so I'm not a total newbie.

Edit. Mageia 9 fully updated.

Re: can't create transaction lock on /var/lib/rpm/__db.000 (

PostPosted: Feb 1st, '24, 17:43
by doktor5000
src.rpm have no dependencies, so --nodeps is not required. Also installing this as user does not require access to /var/lib/rpm/ so you probably ran this command as root.
Or the src.rpm is not actually a src.rpm and a regular binary RPM, then the error message as regular user would be normal and expected.

Re: can't create transaction lock on /var/lib/rpm/__db.000 (

PostPosted: Feb 1st, '24, 17:48
by richardwest
Thanks for your reply.
Code: Select all
(base) [richard@BigBox rpmbuild]$ rpm -ivh /home/richard/rpmbuild/roland-0.68.src.rpm
error: Failed dependencies:
        libSDL-1_2-0 >= 1.2 is needed by roland-0.68-1.x86_64
        libSDL_image-1_2-0 >= 1.2 is needed by roland-0.68-1.x86_64


Code: Select all
(base) [richard@BigBox rpmbuild]$ rpm -ivh /home/richard/rpmbuild/roland-0.68.src.rpm --nodeps
error: can't create transaction lock on /var/lib/rpm/__db.000 (Permission denied)

As you can see, I was running as user.

I reckon you are correct and the problem must lie with the RPM.
I'll mark this as SOLVED.

Re: SOLVEDcan't create transaction lock on /var/lib/rpm/__db

PostPosted: Feb 1st, '24, 18:59
by doktor5000
Well, you can easily grab the sourcecode as they have the .spec in the assets directory and you can build the binary RPM yourself.
But there's not much point as they also offer the precompiled binary so you don't even need the RPM basically.