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

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

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

Postby richardwest » Feb 1st, '24, 15:23

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.
Last edited by richardwest on Feb 1st, '24, 17:55, edited 1 time in total.
Richard.
richardwest
 
Posts: 50
Joined: May 26th, '11, 12:28
Location: Suffolk, England

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

Postby doktor5000 » Feb 1st, '24, 17:43

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.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18054
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

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

Postby richardwest » Feb 1st, '24, 17:48

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.
Richard.
richardwest
 
Posts: 50
Joined: May 26th, '11, 12:28
Location: Suffolk, England

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

Postby doktor5000 » Feb 1st, '24, 18:59

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.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18054
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest