← 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
- Find process: sudo fuser -v /var/lib/dpkg/lock
- Wait or kill: sudo kill PID
- Remove lock: sudo rm /var/lib/dpkg/lock
- Reconfigure: sudo dpkg --configure -a