Dpkg Was Interrupted You Must Manually Run Sudo Dpkg Configure To Correct The Problem
while an active apt or dpkg command is running.
How to Fix "dpkg was interrupted, you must manually run sudo dpkg --configure -a" while an active apt or dpkg command is running
Combine it with a full dependency fix: