📖 ~1 min read
Table of contents
Symptom & Impact
Manual package operations stall because another process holds transaction locks.
Environment & Reproduction
dnf waits indefinitely with lock messages and no progress in transaction output.
Root Cause Analysis
Automatic dnf timers, management agents, or interrupted prior transaction state.
Quick Triage
Use ps and lsof on lock files, then inspect active package-related systemd units.
Step-by-Step Diagnosis
Map active PID to service or automation process before terminating anything.

Solution – Primary Fix
Adjust dnf-automatic timing to avoid overlap with maintenance windows.
Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.

Solution – Alternative Approaches
Use dnf history and rpm database checks to restore consistent state.
Verification & Acceptance Criteria
Stop conflicting services temporarily and restart cleanly after transaction completes.
Rollback Plan
Verify lock and rpm db paths are labeled correctly if filesystem was restored.
Prevention & Hardening
Inspect journalctl for dnf and automation service overlap evidence.
Related Errors & Cross-Refs
Define one package management authority per host and schedule clear windows.
Related tutorial: View the step-by-step tutorial for rhel-9.
View all rhel-9 tutorials on the Tutorials Hub →
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
Run dnf check and a controlled install to confirm locks no longer persist.
Need Expert Help?
If you cannot resolve this yourself, our team offers hands-on Server Management, Managed IT Services, and flexible Support Plans. Contact us today — we respond within one business day.