Skip to content

Can't create transaction lock as regular user #3886

Description

@dmnks

When rpm is run as a regular user while there's no %{dbpath}/.rpm.lock file in place yet, it tries to create one and when the path is non-writable by the user (which is typically the case), then the command fails with:

error: can't create transaction lock on /usr/lib/sysimage/rpm/.rpm.lock (No such file or directory)

While the lock file is normally put in place by the OS installer (e.g. Anaconda on Fedora) or shipped with a container image, it may happen to be missing e.g. after doing an rpmdb --rebuilddb.

We may want to handle this more gracefully, at least give a more user-friendly message.

Activity

  1. added theissue type on Aug 12, 2025
  2. self-assigned this
    on Aug 25, 2025
  3. moved this from Backlog to Done in RPMon Sep 1, 2025
  4. added a commit that references this issue on Sep 1, 2025
    4743ea8
  5. modified the milestones: 6.0.0 rc1, 6.0.0 on Sep 17, 2025
  6. added a commit that references this issue on Sep 19, 2025
    018a3ed
  7. added a commit that references this issue on Sep 22, 2025
    cec23c9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

Projects

  • Status
    Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions