← All Kali Issues
dpkg

Status database locked

P Package High

🔴 Error Message

dpkg: error: dpkg status database is locked by another process

📖 What This Means

Another dpkg process has the lock.

🔧 Step-by-Step Fix

  1. Find process: sudo fuser -v /var/lib/dpkg/lock
  2. Wait or kill: sudo kill PID
  3. Remove lock: sudo rm /var/lib/dpkg/lock
  4. Reconfigure: sudo dpkg --configure -a