← All Kali Issues
apt
Could not get lock
P Package
High
🔴 Error Message
E: Could not get lock /var/lib/apt/lists/lock
📖 What This Means
Another apt process is running or crashed without releasing the lock file.
🔧 Step-by-Step Fix
- Check running: ps aux | grep apt
- Wait for it to finish
- Remove lock: sudo rm /var/lib/apt/lists/lock
- Remove frontend lock: sudo rm /var/lib/dpkg/lock-frontend
- Reconfigure: sudo dpkg --configure -a