Type the following command exactly as shown and press Enter:

sudo grep -i "interrupt" /var/log/dpkg.log

Do not press Ctrl+C while apt , dpkg , aptitude , or graphical package managers are running. If an operation seems stuck, give it time—some package scripts (e.g., for kernel updates or database migrations) can take several minutes.

Here’s what you do step by step:

The system runs out of memory (RAM) or freezes during a kernel update. Step-by-Step Guide to Fix the Error

less /var/log/dpkg.log less /var/log/apt/term.log

E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem The Broken Bridge

sudo cp /var/lib/dpkg/status /root/dpkg-status-backup

if updating a laptop; always plug into a power source before running major system upgrades.

sudo dpkg --configure -a