A: After fixing dpkg, you can run top normally. If top shows a leftover dpkg process, kill it with sudo pkill -9 dpkg .
sudo apt update sudo apt upgrade sudo apt autoremove sudo apt clean Use code with caution. Copied to clipboard 🚨 Troubleshooting "Extreme" Cases
To avoid this in the future, always let your terminal finish its task before closing it, and ensure your laptop is plugged into power during large system upgrades.
Additionally, consider using tools like aptitude or apt with the --simulate option to test package management commands without actually applying changes.
If the command above does not fully fix the problem or you encounter more errors, follow these steps in order: Fix Broken Dependencies
Setting up python3 (3.8.2-0ubuntu2) ... Setting up firefox (84.0.2-0ubuntu0.20.04.1) ...

