[Rpm-maint] [rpm-software-management/rpm] rpm --query attempt a transaction lock (Issue #4110)

fmo25 notifications at github.com
Sun Feb 8 10:45:37 UTC 2026


fmo25 created an issue (rpm-software-management/rpm#4110)

If **rpm --query** is used during a running transaction, it complains on
stderr with:
```
    error: can't create transaction lock on /usr/lib/sysimage/rpm/.rpm.lock (Resource temporarily unavailable)
```
but succeeds anyway and gives the proper output..

**Steps to reproduce** :
1. install a package as root, pause it mid-transaction
2. execute: rpm -q bash < /dev/null
3. result in:
```
    error: can't create transaction lock on /usr/lib/sysimage/rpm/.rpm.lock (Resource temporarily unavailable)
    bash-5.3.0-2.fc43.x86_64
```
Without **< /dev/null**  one gets:
```
    warning: waiting for transaction lock on /usr/lib/sysimage/rpm/.rpm.lock
```

**Expected behavior**
Nothing on stderr

**Environment**
 - Fedora 43
 - rpm.x86_64 6.0.1-1.fc43

**Additional context**

This has been shown in the **akmods** command that is called in
posttrans of the akmod-KMO end kernel-core RPM's

This doesn't happens on Fedora 42 with rpm-4.20.1-1.fc42.x86_64

I guess that this is due to this commit:

  https://github.com/rpm-software-management/rpm/commit/79b26f1ac5c4abe3a2ebbb8679f023cf3a2dd412

**Workaround**

Add the **--nosignature** option to **rpm --query**

**Possible fix**

Add the **RPMVSF_MASK_NOSIGNATURES)** flags to **vsflags** in the
**rpmcliQuery** function.

AFAIK: none of the options usable with **--query** needs to load the
keyring


-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/4110
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/issues/4110 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20260208/08ec698e/attachment.htm>


More information about the Rpm-maint mailing list