GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||
GeezerVison is showing computingforgeeks.com — Fix "Pacman is currently in use, please wait" (db.lck) | ComputingForGeeks Pacman, makepkg and yay all refuse to touch the package database while Usually the lock is real and another upgrade has to finish. When it is stale, deleting it is a one-line fix, but you need to tell the two cases apart first. A crash in the middle of an install can also leave a broken package behind, even after the lock is gone. We tested each message on Arch Linux with pacman 7.1 and yay 13.0.1, and on Manjaro 26.1.2 with Pamac 11.7.4, in October 2026. Match the message to the toolEach front end words the lock differently, which is why you’ll find the same problem under so many search phrases. What they all check is the same file,
pacman’s own error is the most useful of the four, because it names the file and tells you to remove it only “if you’re sure a package manager is not already running”. makepkg and yay never give up on their own, and Pamac gives up after 5 minutes. Our yay sat for 65 seconds on a stale lock and installed its package 2 seconds after we deleted the file from another shell, so you can fix the lock without cancelling the build you’re waiting on. Check whether a package manager holds the lockpacman keeps
Here a second terminal was sitting at pacman’s
Don’t delete the file in this state. Find the terminal or the job that started that pacman and let it finish, or answer its prompt. If you can’t find it,
Our holder was the half-finished
A pacman waiting at its
When ![]() The capture shows both cases one after the other: a live pacman that Remove a stale db.lckOnce
Finish with a database check, which takes a second and tells you whether the process that left the lock also left damage:
On a clean database you get one line:
Any Find out why the lock went stalepacman removes its lock when it exits normally, and it also cleans up after some signals. It doesn’t after others, which decides whether a cancelled update leaves a mess. We started
So Ctrl+C is the safe way to cancel pacman. Old guides suggest On Arch, rebooting won’t help you either. We created a stale lock, rebooted the VM and found Handle the lock on Manjaro with PamacPamac reads the same lock file, so the check and the fix are identical on Manjaro. What differs is when Pamac takes the lock. In our Manjaro container, That leaves two practical cases:
A stale lock on Manjaro still means something killed a transaction, so finish with Repair a package after a crashA lock left by SIGKILL in the middle of an install is the case that bites later. We pre-downloaded Firefox and its dependencies, started the install and killed pacman 1.5 seconds in, while it was extracting
pacman had created the database entry for
To repair it, you move the broken database entry out of the way so pacman stops believing the package is installed. Moving it rather than deleting it keeps a copy if you want to look at it later:
A plain reinstall now fails the other way, with 459 “exists in filesystem” conflicts, because the files the dead pacman extracted are on disk with no package owning them. Read the conflict lines first. When we repeated the repair, none of the 737 conflicts named an owner, but a line ending in
Never add
Both come back clean, and every file
If
Josphat Mutai
Founder of Computingforgeeks. Senior Systems Engineer with over a decade of hands-on experience building and managing production infrastructure. Core expertise in Linux/UNIX administration, cloud platforms (AWS, GCP, Azure), and Kubernetes ecosystems (EKS, GKE, OpenShift). Deep experience with virtualization (KVM, Proxmox, OpenStack), infrastructure as code (Terraform, Terragrunt, Ansible, Crossplane), GitOps workflows (ArgoCD, FluxCD), Nix/NixOS, and container orchestration at scale. Currently focused on integrating AI and LLMs into DevOps and platform engineering workflows. Every guide on this site is tested on real systems before publishing. Keep reading
Virtualization
Install KVM and Virt-Manager on Arch Linux
Arch Linux
Things to Do After Installing CachyOS: Post-Install Setup Guide
Arch Linux
How to Install CachyOS: Step-by-Step Guide
AI
Install the ChatGPT Desktop App on Linux (Ubuntu and Fedora)
Arch Linux
Pacman and Yay Cheat Sheet for Arch Linux
Web Hosting
How To Host WordPress website with Caddy Web Server
Leave a Comment Cancel reply
| ||||||||||||||||||||||||||||||
| You are visitor 01402605 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |